Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[about dialog] set the tab index to 0 whether network is not availabl…
…e and developers map tab was selected
  • Loading branch information
slarosa committed Aug 26, 2015
1 parent 36675ba commit 9402f99
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/app/qgsabout.cpp
Expand Up @@ -56,10 +56,15 @@ void QgsAbout::init()
QTcpSocket socket;
socket.connectToHost( "qgis.org", 80 );
if ( socket.waitForConnected( 1000 ) )
{
setDevelopersMap();
}
else
{
mOptionsListWidget->item( DEVELOPERS_MAP_INDEX )->setHidden( true );

QModelIndex firstItem = mOptionsListWidget->model()->index( 0, 0, QModelIndex() );
mOptionsListWidget->setCurrentIndex( firstItem );
}
developersMapView->page()->setLinkDelegationPolicy( QWebPage::DelegateAllLinks );
developersMapView->setContextMenuPolicy( Qt::NoContextMenu );

Expand Down

0 comments on commit 9402f99

Please sign in to comment.