[vlmc-devel] [PATCH] Use simple if ()

Yikai Lu luyikei.qmltu at gmail.com
Tue Mar 29 15:50:29 CEST 2016


---
 src/Gui/MainWindow.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/Gui/MainWindow.cpp b/src/Gui/MainWindow.cpp
index 786effd..8bd8f3b 100644
--- a/src/Gui/MainWindow.cpp
+++ b/src/Gui/MainWindow.cpp
@@ -341,10 +341,10 @@ MainWindow::initVlmcPreferences()
 void
 MainWindow::on_actionSave_triggered()
 {
-    if ( Core::getInstance()->project()->hasProjectFile() == false )
-        on_actionSave_As_triggered();
-    else
+    if ( Core::getInstance()->project()->hasProjectFile() )
         Core::getInstance()->project()->save();
+    else
+        on_actionSave_As_triggered();
 }
 
 void
-- 
1.9.1



More information about the Vlmc-devel mailing list