summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-08-26 08:39:59 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-08-26 08:39:59 +0200
commitdf9c024b596d74b02341387577fd0ea1d95d6c78 (patch)
tree085bf65f9d19f062558eabf76daa586d48bb06eb
parent4559bdb44ef9b48d74cbc2e38ecdccd5e92d48e3 (diff)
ui: also bail on new config if its name is ".ini"
-rw-r--r--facetracknoir/new_file_dialog.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/facetracknoir/new_file_dialog.h b/facetracknoir/new_file_dialog.h
index d72b8741..3a35cf71 100644
--- a/facetracknoir/new_file_dialog.h
+++ b/facetracknoir/new_file_dialog.h
@@ -36,7 +36,7 @@ private slots:
text = text.replace('\\', "");
if (text != "" && !text.endsWith(".ini"))
text += ".ini";
- if (text == "" || QFile(options::group::ini_directory() + "/" + text).exists())
+ if (text == "" || text == ".ini" || QFile(options::group::ini_directory() + "/" + text).exists())
{
QMessageBox::warning(this,
"File exists", "This file already exists. Pick another name.",