[vlmc-devel] [PATCH] WelcomePage: Add QMessageBox noticing user when project file is not found
yikei lu
luyikei.qmltu at gmail.com
Mon Mar 13 03:04:23 CET 2017
On Sun, Mar 12, 2017 at 9:00 PM, Hieu Pham <phamhuuquanghieu at gmail.com> wrote:
> ---
> src/Gui/wizard/WelcomePage.cpp | 9 +++++++++
> 1 file changed, 9 insertions(+)
>
> diff --git a/src/Gui/wizard/WelcomePage.cpp b/src/Gui/wizard/WelcomePage.cpp
> index 0b95dc1..adcc58b 100644
> --- a/src/Gui/wizard/WelcomePage.cpp
> +++ b/src/Gui/wizard/WelcomePage.cpp
> @@ -106,6 +106,15 @@ WelcomePage::validatePage()
> "the list.\nThen click next to continue..." ) );
> return false;
> }
> + else if ( QFile::exists( *m_projectPath ) == false )
> + {
> + QMessageBox msgBox;
> + msgBox.setText( "Sorry, we couldn't find your file. Was it moved, renamed, or deleted?" );
You should use tr for this string I guess.
> + msgBox.setInformativeText( m_projectPath->toUtf8() );
> + msgBox.setDefaultButton( QMessageBox::Ok );
> + msgBox.exec();
> + return false;
> + }
> return true;
> }
> return true;
> --
> 2.9.3
>
> _______________________________________________
> Vlmc-devel mailing list
> Vlmc-devel at videolan.org
> https://mailman.videolan.org/listinfo/vlmc-devel
More information about the Vlmc-devel
mailing list