don't run version check from build directory

This commit is contained in:
Juergen E. Fischer 2016-02-14 22:05:54 +01:00
parent 1f2cc3d051
commit b7a9634264

View File

@ -58,8 +58,11 @@ QgsWelcomePage::QgsWelcomePage( QWidget* parent )
mVersionInformation->setVisible( false );
mVersionInfo = new QgsVersionInfo();
connect( mVersionInfo, SIGNAL( versionInfoAvailable() ), this, SLOT( versionInfoReceived() ) );
mVersionInfo->checkVersion();
if( !QgsApplication::isRunningFromBuildDir() )
{
connect( mVersionInfo, SIGNAL( versionInfoAvailable() ), this, SLOT( versionInfoReceived() ) );
mVersionInfo->checkVersion();
}
connect( recentProjectsListView, SIGNAL( activated( QModelIndex ) ), this, SLOT( itemActivated( QModelIndex ) ) );
}