From c15a456ac6df79a001250fc5b877751db4a30875 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 22 Aug 2015 23:00:59 +0200 Subject: ui: append extension in the right place Otherwise, file can be overwritten accidentally --- facetracknoir/ui.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'facetracknoir/ui.cpp') diff --git a/facetracknoir/ui.cpp b/facetracknoir/ui.cpp index a204f36d..e22fee7a 100644 --- a/facetracknoir/ui.cpp +++ b/facetracknoir/ui.cpp @@ -109,10 +109,7 @@ bool MainWindow::get_new_config_name_from_dialog(QString& ret) { new_file_dialog dlg; dlg.exec(); - bool b = dlg.is_ok(ret); - if (b && !ret.endsWith(".ini")) - ret += ".ini"; - return b; + return dlg.is_ok(ret); } MainWindow::~MainWindow() -- cgit v1.2.3