Skip to content
Permalink
Browse files

[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 9402f99428f4a6ce6ee7b590a390c7ebbe8158ec
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/app/qgsabout.cpp
@@ -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 );

0 comments on commit 9402f99

Please sign in to comment.
You can’t perform that action at this time.