Skip to content

Commit b7a9634

Browse files
committed
don't run version check from build directory
1 parent 1f2cc3d commit b7a9634

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/app/qgswelcomepage.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,11 @@ QgsWelcomePage::QgsWelcomePage( QWidget* parent )
5858
mVersionInformation->setVisible( false );
5959

6060
mVersionInfo = new QgsVersionInfo();
61-
connect( mVersionInfo, SIGNAL( versionInfoAvailable() ), this, SLOT( versionInfoReceived() ) );
62-
mVersionInfo->checkVersion();
61+
if( !QgsApplication::isRunningFromBuildDir() )
62+
{
63+
connect( mVersionInfo, SIGNAL( versionInfoAvailable() ), this, SLOT( versionInfoReceived() ) );
64+
mVersionInfo->checkVersion();
65+
}
6366

6467
connect( recentProjectsListView, SIGNAL( activated( QModelIndex ) ), this, SLOT( itemActivated( QModelIndex ) ) );
6568
}

0 commit comments

Comments
 (0)