summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir/ui.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'facetracknoir/ui.cpp')
-rw-r--r--facetracknoir/ui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/facetracknoir/ui.cpp b/facetracknoir/ui.cpp
index 5d3bc591..a9fcbbc7 100644
--- a/facetracknoir/ui.cpp
+++ b/facetracknoir/ui.cpp
@@ -95,11 +95,11 @@ MainWindow::~MainWindow()
void MainWindow::open() {
QFileDialog dialog(this);
dialog.setFileMode(QFileDialog::ExistingFile);
-
+ QString dir_path = QFileInfo(group::ini_pathname()).absolutePath();
QString fileName = dialog.getOpenFileName(
this,
tr("Open the settings file"),
- QCoreApplication::applicationDirPath() + "/settings/",
+ dir_path,
tr("Settings file (*.ini);;All Files (*)"),
NULL);