[Marble-commits] KDE/kdeedu/marble/src/lib
Dennis Nienhüser
earthwings at gentoo.org
Tue May 11 22:30:24 CEST 2010
SVN commit 1125615 by nienhueser:
When no position provider plugin is installed, disable the drop down widget and tell the user about it in the status label.
M +6 -0 MarbleControlBox.cpp
--- trunk/KDE/kdeedu/marble/src/lib/MarbleControlBox.cpp #1125614:1125615
@@ -323,6 +323,12 @@
foreach( const PositionProviderPlugin *plugin, d->m_positionProviderPlugins ) {
d->uiWidget.positionTrackingComboBox->addItem( plugin->guiString() );
}
+ if ( !d->m_positionProviderPlugins.size() ) {
+ d->uiWidget.positionTrackingComboBox->setEnabled( false );
+ QString html = "<p>No Position Tracking Plugin installed.</p>";
+ d->uiWidget.locationLabel->setText( html );
+ d->uiWidget.locationLabel->setEnabled ( true );
+ }
//connect CurrentLoctaion signals
connect( this, SIGNAL( gpsInputDisabled( bool ) ),
More information about the Marble-commits
mailing list