From df9c024b596d74b02341387577fd0ea1d95d6c78 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 26 Aug 2015 08:39:59 +0200 Subject: ui: also bail on new config if its name is ".ini" --- facetracknoir/new_file_dialog.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.", -- cgit v1.2.3