[vlmc-devel] [PATCH] WelcomePage: Add QMessageBox noticing user when project file is not found

Hieu Pham phamhuuquanghieu at gmail.com
Mon Mar 13 05:03:25 CET 2017


---
 src/Gui/wizard/WelcomePage.cpp | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/Gui/wizard/WelcomePage.cpp b/src/Gui/wizard/WelcomePage.cpp
index 0b95dc1..6bbcbff 100644
--- a/src/Gui/wizard/WelcomePage.cpp
+++ b/src/Gui/wizard/WelcomePage.cpp
@@ -106,6 +106,13 @@ WelcomePage::validatePage()
                                       "the list.\nThen click next to continue..." ) );
             return false;
         }
+        else if ( QFile::exists( *m_projectPath ) == false )
+        {
+            QMessageBox::warning( this, tr("Warning"),
+                                  tr( "Sorry, we couldn't find your file. Was it moved, renamed, or deleted?" )
+                                  + "\n" + m_projectPath->toUtf8());
+            return false;
+        }
         return true;
     }
     return true;
-- 
2.9.3



More information about the Vlmc-devel mailing list