summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-11-04 19:31:14 +0100
committerStanislaw Halik <sthalik@misaki.pl>2014-11-04 19:31:14 +0100
commitdb4783e0ecf03eb0ff98bd04f0507a8a4a330ede (patch)
tree15a0af39a0ee1d4763269ab1425278dea5927233
parent1ca566b033adc48afdfb964e5140751c8cb14e3c (diff)
default to current profile's pathname when loading
-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);