diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-03-24 12:03:40 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-03-24 12:03:40 +0100 |
commit | 46f70066cce0fc234cb263ada756a02113e66523 (patch) | |
tree | 8322fa21cd8ec246aae5301d8c31f323a4d9ab75 /gui | |
parent | a34e5b5073066f51db4e3e4029a418089ddc6ecc (diff) |
gui: prevent creating empty default.ini
Diffstat (limited to 'gui')
-rw-r--r-- | gui/main-window.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gui/main-window.cpp b/gui/main-window.cpp index b0177ddb..7b3a2f62 100644 --- a/gui/main-window.cpp +++ b/gui/main-window.cpp @@ -281,6 +281,9 @@ void MainWindow::die_on_config_not_writable() bool MainWindow::maybe_die_on_config_not_writable(const QString& current, QStringList* ini_list_) { + if (current == OPENTRACK_DEFAULT_CONFIG_Q) + return false; + const bool open = QFile(group::ini_combine(current)).open(QFile::ReadWrite); const QStringList ini_list = group::ini_list(); |