[vlmc-devel] [PATCH] WelcomePage: Add QMessageeBox to Project Wizard noticing user when project file not found

yikei lu luyikei.qmltu at gmail.com
Thu Mar 30 08:01:08 CEST 2017


Applied thanks!

On Wed, Mar 29, 2017 at 10:06 PM, Hieu Pham <phamhuuquanghieu at gmail.com> wrote:
> ---
>  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;
> --
> 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