diff options
author | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2012-01-03 20:41:20 +0000 |
---|---|---|
committer | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2012-01-03 20:41:20 +0000 |
commit | 1ea5614e3b20a40b8764a98c10a7a0c7538035d5 (patch) | |
tree | b8553bdaa92a94a068430f4b3173425ca1eb753d /keymgmt.cpp | |
parent | fix crash on decrypt with no data (diff) | |
download | gpg4usb-1ea5614e3b20a40b8764a98c10a7a0c7538035d5.tar.gz gpg4usb-1ea5614e3b20a40b8764a98c10a7a0c7538035d5.zip |
show message in statusbar of mainwindow when key is exported to file in keymanagement
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@722 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'keymgmt.cpp')
-rwxr-xr-x | keymgmt.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/keymgmt.cpp b/keymgmt.cpp index 0ec7f30..a79f083 100755 --- a/keymgmt.cpp +++ b/keymgmt.cpp @@ -22,7 +22,7 @@ #include "keymgmt.h" -KeyMgmt::KeyMgmt(GpgME::GpgContext *ctx, QString iconpath) +KeyMgmt::KeyMgmt(GpgME::GpgContext *ctx, QString iconpath, QWidget *parent ) : QMainWindow(parent) { mCtx = ctx; mIconPath = iconpath; @@ -36,6 +36,7 @@ KeyMgmt::KeyMgmt(GpgME::GpgContext *ctx, QString iconpath) createActions(); createMenus(); createToolBars(); + connect(this,SIGNAL(statusBarChanged(QString)),this->parent(),SLOT(setStatusBarText(QString))); /* Restore the iconstyle */ QSettings settings; @@ -255,6 +256,7 @@ void KeyMgmt::exportKeyToFile() stream << *keyArray; file.close(); delete keyArray; + emit statusBarChanged(QString(tr("key(s) exported"))); } void KeyMgmt::exportKeyToClipboard() |