Skip to content

Commit 4405d32

Browse files
committed
Last locations: fixed absolute path for "Execute SQL" dialogs
Issue #3831
1 parent 971fc65 commit 4405d32

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/FileDialog.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ QStringList FileDialog::getOpenFileNames(const FileDialogTypes dialogType, QWidg
1515
if(!result.isEmpty())
1616
{
1717
QFileInfo path = QFileInfo(result.first());
18-
setFileDialogPath(dialogType, path.absolutePath());
18+
setFileDialogPath(dialogType, path.absoluteFilePath());
1919
}
2020
return result;
2121
}
@@ -50,7 +50,7 @@ QString FileDialog::getFileDialogPath(const FileDialogTypes dialogType)
5050

5151
return lastLocations[QString::number(static_cast<int>(dialogType))].toString();
5252
}
53-
case 1: // Always use this locations
53+
case 1: // Always use this location
5454
return Settings::getValue("db", "defaultlocation").toString();
5555
default:
5656
return QString();

0 commit comments

Comments
 (0)