aboutsummaryrefslogtreecommitdiffstats
path: root/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'mainwindow.cpp')
-rw-r--r--mainwindow.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/mainwindow.cpp b/mainwindow.cpp
index 1b00289..393b9f0 100644
--- a/mainwindow.cpp
+++ b/mainwindow.cpp
@@ -783,7 +783,7 @@ void MainWindow::importKeyFromEdit()
void MainWindow::startImport(KGpgImport *import)
{
qDebug() << "start import";
- //changeMessage(i18n("Importing..."), true);
+ changeMessage(tr("Importing..."), true);
connect(import, SIGNAL(done(int)), SLOT(slotImportDone(int)));
import->start();
}
@@ -792,8 +792,6 @@ void MainWindow::slotImportDone(int result)
{
KGpgImport *import = qobject_cast<KGpgImport *>(sender());
- qDebug() << "import Done";
-
Q_ASSERT(import != NULL);
const QStringList rawmsgs(import->getMessages());
@@ -820,10 +818,18 @@ void MainWindow::slotImportDone(int result)
changeMessage(i18nc("Application ready for user input", "Ready"));
}
*/
+ changeMessage(tr("Application ready for user input", "Ready"));
mCtx->emitKeyDBChanged();
import->deleteLater();
}
+void MainWindow::changeMessage(const QString &msg, const bool keep)
+{
+ int timeout = keep ? 0 : 10000;
+
+ statusBar()->showMessage(msg, timeout);
+}
+
void MainWindow::openKeyManagement()
{
keyMgmt->show();