Skip to content
Permalink
Browse files
Switch 'select vector layer first' dialog warning for labeling toolba…
…r action to QgsMessageBar timeout message
  • Loading branch information
dakcarto committed Jan 10, 2013
1 parent d66b6b3 commit 5be6dc6fc6c10ef1ec106d9ddf47c48574d598ae
Showing with 6 additions and 1 deletion.
  1. +6 −1 src/app/qgisapp.cpp
@@ -4029,7 +4029,12 @@ void QgisApp::labeling()
QgsMapLayer* layer = activeLayer();
if ( layer == NULL || layer->type() != QgsMapLayer::VectorLayer )
{
QMessageBox::warning( this, tr( "Labeling" ), tr( "Please select a vector layer first." ) );
QWidget* msg = QgsMessageBar::createMessage(
tr( "Labeling: " ),
tr( "Please select a vector layer first." ) ,
QgsApplication::getThemeIcon( "/mIconWarn.png" ),
mInfoBar );
mInfoBar->pushWidget( msg, 1, 4 );
return;
}

0 comments on commit 5be6dc6

Please sign in to comment.