Skip to content
Permalink
Browse files

[ui] add hyperlink to saved vector/raster in the message bar

  • Loading branch information
nirvn committed Jan 17, 2018
1 parent 163c278 commit 8bb6fde8b2d710c2b6c3402ee6f0fe1755d71e42
Showing with 6 additions and 6 deletions.
  1. +6 −6 src/app/qgisapp.cpp
@@ -6852,9 +6852,9 @@ void QgisApp::saveAsRasterFile( QgsRasterLayer *rasterLayer )
if ( rlWeakPointer )
emit layerSavedAs( rlWeakPointer, fileName );

messageBar()->pushMessage( tr( "Saving done" ),
tr( "Export to raster file has been completed" ),
QgsMessageBar::INFO, messageTimeout() );
messageBar()->pushMessage( tr( "Saving Done" ),
tr( "Successfully saved raster layer to <a href=\"%1\">%2</a>" ).arg( QUrl::fromLocalFile( QFileInfo( newFilename ).path() ).toString() ).arg( newFilename ),
QgsMessageBar::SUCCESS, messageTimeout() );
} );

// when an error occurs:
@@ -7055,9 +7055,9 @@ void QgisApp::saveAsVectorFileGeneral( QgsVectorLayer *vlayer, bool symbologyOpt
this->addVectorLayers( QStringList( uri ), encoding, QStringLiteral( "file" ) );
}
this->emit layerSavedAs( vlayer, vectorFilename );
this->messageBar()->pushMessage( tr( "Saving done" ),
tr( "Export to vector file has been completed" ),
QgsMessageBar::INFO, messageTimeout() );
this->messageBar()->pushMessage( tr( "Saving Done" ),
tr( "Successfully saved vector layer to <a href=\"%1\">%2</a>" ).arg( QUrl::fromLocalFile( QFileInfo( newFilename ).path() ).toString() ).arg( newFilename ),
QgsMessageBar::SUCCESS, messageTimeout() );
}
);

0 comments on commit 8bb6fde

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