mirror of
https://bitbucket.org/smil3y/kde-playground.git
synced 2025-02-23 18:32:51 +00:00
kgpg: use KMessageBox to show error when it occurs
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
e13a8f6ae9
commit
281ee05269
1 changed files with 2 additions and 0 deletions
|
@ -19,6 +19,7 @@
|
|||
#include <QScopedPointer>
|
||||
#include <klocale.h>
|
||||
#include <kpassworddialog.h>
|
||||
#include <kmessagebox.h>
|
||||
#include <kapplication.h>
|
||||
#include <klocale.h>
|
||||
#include <kcmdlineargs.h>
|
||||
|
@ -158,6 +159,7 @@ void KGPG::setError(const QString &error)
|
|||
|
||||
const QString errormessage = i18n("Error: %1", error);
|
||||
m_ui.statusbar->showMessage(errormessage);
|
||||
KMessageBox::error(this, errormessage);
|
||||
|
||||
m_ui.progressbar->setMinimum(0);
|
||||
m_ui.progressbar->setMaximum(100);
|
||||
|
|
Loading…
Add table
Reference in a new issue