mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
Desktop: allow using a file dialog to find Garmin folder
If we don't auto-detect where the Garmin Descent is mounted, the user can either just type in the correct path, or can use a file diealog to specify it. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c8ff060efe
commit
0ef145337a
1 changed files with 4 additions and 2 deletions
|
@ -248,9 +248,11 @@ void DownloadFromDCWidget::on_product_currentIndexChanged(const QString &)
|
|||
|
||||
void DownloadFromDCWidget::on_search_clicked()
|
||||
{
|
||||
if (ui.vendor->currentText() == "Uemis") {
|
||||
if (ui.vendor->currentText() == "Uemis" || ui.vendor->currentText() == "Garmin") {
|
||||
QString dialogTitle = ui.vendor->currentText() == "Uemis" ?
|
||||
tr("Find Uemis dive computer") : tr("Find Garmin dive computer");
|
||||
QString dirName = QFileDialog::getExistingDirectory(this,
|
||||
tr("Find Uemis dive computer"),
|
||||
dialogTitle,
|
||||
QDir::homePath(),
|
||||
QFileDialog::ShowDirsOnly);
|
||||
if (ui.device->findText(dirName) == -1)
|
||||
|
|
Loading…
Reference in a new issue