[vlmc-devel] WelcomePage: Add QMessageeBox to Project Wizard noticing user when project file not found
Hieu Pham
git at videolan.org
Thu Mar 30 08:00:42 CEST 2017
vlmc | branch: master | Hieu Pham <phamhuuquanghieu at gmail.com> | Wed Mar 29 22:06:57 2017 -0500| [4ca8e32fa17832cb5c96039e4f1cf76df26026c4] | committer: Yikai Lu
WelcomePage: Add QMessageeBox to Project Wizard noticing user when project file not found
> https://code.videolan.org/videolan/vlmc/commit/4ca8e32fa17832cb5c96039e4f1cf76df26026c4
---
src/Gui/wizard/WelcomePage.cpp | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/Gui/wizard/WelcomePage.cpp b/src/Gui/wizard/WelcomePage.cpp
index 0b95dc1..d216382 100644
--- a/src/Gui/wizard/WelcomePage.cpp
+++ b/src/Gui/wizard/WelcomePage.cpp
@@ -106,6 +106,14 @@ WelcomePage::validatePage()
"the list.\nThen click next to continue..." ) );
return false;
}
+ else if ( QFile::exists( *m_projectPath ) == false )
+ {
+ QMessageBox::warning( this, tr( "Warning" ),
+ QStringLiteral( "%1\n%2" )
+ .arg( tr( "Sorry, we couldn't find your file. Was it moved, renamed, or deleted?" ) )
+ .arg( *m_projectPath ) );
+ return false;
+ }
return true;
}
return true;
More information about the Vlmc-devel
mailing list