Skip to content
Permalink
Browse files

Show messagebar feedback after successfully extracting svg/raster con…

…tents
  • Loading branch information
nyalldawson committed Dec 6, 2018
1 parent f3b7260 commit 72783d55c8c384849c08d867e23a79f2329c30c6
Showing with 8 additions and 0 deletions.
  1. +8 −0 src/gui/qgsfilecontentsourcelineedit.cpp
@@ -15,6 +15,7 @@

#include "qgsfilecontentsourcelineedit.h"
#include "qgssettings.h"
#include "qgsmessagebar.h"
#include <QMenu>
#include <QLineEdit>
#include <QToolButton>
@@ -185,6 +186,13 @@ void QgsAbstractFileContentSourceLineEdit::extractFile()
fileOut.open( QIODevice::WriteOnly );
fileOut.write( decoded );
fileOut.close();

if ( mMessageBar )
{
mMessageBar->pushMessage( extractFileTitle(),
tr( "Successfully extracted file to <a href=\"%1\">%2</a>" ).arg( QUrl::fromLocalFile( file ).toString(), QDir::toNativeSeparators( file ) ),
Qgis::Success, 0 );
}
}
}

0 comments on commit 72783d5

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