Skip to content
Permalink
Browse files

change to messagebar some messageboxes in mainapp

  • Loading branch information
slarosa committed Sep 26, 2014
1 parent 0fd63e8 commit 2f4489de7e08fce0b6fa9b309d0d3b887b6cb340
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/app/qgisapp.cpp
@@ -7714,8 +7714,8 @@ QgsVectorLayer* QgisApp::addVectorLayer( QString vectorLayerPath, QString baseNa
}
else
{
QMessageBox::critical( this, tr( "Layer is not valid" ),
tr( "The layer %1 is not a valid layer and can not be added to the map" ).arg( vectorLayerPath ) );
QString msg = tr( "The layer %1 is not a valid layer and can not be added to the map" ).arg( vectorLayerPath );
messageBar()->pushMessage( tr( "Layer is not valid" ), msg, QgsMessageBar::CRITICAL, messageTimeout() );

delete layer;
mMapCanvas->freeze( false );
@@ -7757,8 +7757,8 @@ void QgisApp::addMapLayer( QgsMapLayer *theMapLayer )
}
else
{
QMessageBox::critical( this, tr( "Layer is not valid" ),
tr( "The layer is not a valid layer and can not be added to the map" ) );
QString msg = tr( "The layer is not a valid layer and can not be added to the map" );
messageBar()->pushMessage( tr( "Layer is not valid" ), msg, QgsMessageBar::CRITICAL, messageTimeout() );
}

// draw the map

0 comments on commit 2f4489d

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