summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-08-30 09:27:33 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-08-30 09:27:33 +0200
commitf281b514b060a2225702b2e7c9420b73d0b2bb72 (patch)
tree2f5364da996119a13affa675edec9df28b222693 /facetracknoir
parent427bb340f62de2dd9924ced702e7ed140357b5e6 (diff)
ui: show a warning if configuration directory can't be used
Diffstat (limited to 'facetracknoir')
-rw-r--r--facetracknoir/ui.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/facetracknoir/ui.cpp b/facetracknoir/ui.cpp
index 32ca3e4b..0876c848 100644
--- a/facetracknoir/ui.cpp
+++ b/facetracknoir/ui.cpp
@@ -99,6 +99,12 @@ MainWindow::MainWindow() :
(void) file.open(QFile::ReadWrite);
}
}
+
+ if (group::ini_directory() == "")
+ QMessageBox::warning(this,
+ "Configuration not saved.",
+ "Can't create configuration directory! Expect major malfunction.",
+ QMessageBox::Ok, QMessageBox::NoButton);
}
bool MainWindow::get_new_config_name_from_dialog(QString& ret)