summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir/new_file_dialog.h
diff options
context:
space:
mode:
Diffstat (limited to 'facetracknoir/new_file_dialog.h')
-rw-r--r--facetracknoir/new_file_dialog.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/facetracknoir/new_file_dialog.h b/facetracknoir/new_file_dialog.h
index dc821592..d72b8741 100644
--- a/facetracknoir/new_file_dialog.h
+++ b/facetracknoir/new_file_dialog.h
@@ -34,6 +34,8 @@ private slots:
QString text = ui.lineEdit->text();
text = text.replace('/', "");
text = text.replace('\\', "");
+ if (text != "" && !text.endsWith(".ini"))
+ text += ".ini";
if (text == "" || QFile(options::group::ini_directory() + "/" + text).exists())
{
QMessageBox::warning(this,