Skip to content

Commit

Permalink
Show messagebar feedback after successfully extracting svg/raster con…
Browse files Browse the repository at this point in the history
…tents
  • Loading branch information
nyalldawson committed Dec 6, 2018
1 parent f3b7260 commit 72783d5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/gui/qgsfilecontentsourcelineedit.cpp
Expand Up @@ -15,6 +15,7 @@

#include "qgsfilecontentsourcelineedit.h"
#include "qgssettings.h"
#include "qgsmessagebar.h"
#include <QMenu>
#include <QLineEdit>
#include <QToolButton>
Expand Down Expand Up @@ -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 );
}
}
}

Expand Down

0 comments on commit 72783d5

Please sign in to comment.