From 46f70066cce0fc234cb263ada756a02113e66523 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 24 Mar 2017 12:03:40 +0100 Subject: gui: prevent creating empty default.ini --- gui/main-window.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gui/main-window.cpp') 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(); -- cgit v1.2.3