Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 5be6dc6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/app/qgisapp.cpp
Expand Up @@ -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;
}

Expand Down

0 comments on commit 5be6dc6

Please sign in to comment.