summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Riddell <jr@jriddell.org>2016-09-26 16:48:27 (GMT)
committerJonathan Riddell <jr@jriddell.org>2016-09-26 16:48:27 (GMT)
commit892ce0bd1bb930b689fb40d9cc9a32f3cdad94ae (patch)
tree4bfc9206d8029e2bd2f8387df72dffc4631fffcb
parentd28eb4c620bc1d36d6c396dd6dc1bd421e7f22ae (diff)
use Message Box at end of process, nicer than reusing the Progress Dialog
-rw-r--r--app/kipiinterface.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/app/kipiinterface.cpp b/app/kipiinterface.cpp
index 64d4b72..209e203 100644
--- a/app/kipiinterface.cpp
+++ b/app/kipiinterface.cpp
@@ -359,7 +359,6 @@ void KIPIInterface::slotInstallPlugins(bool checked) {
m_installTransaction = 0;
d->installDialog = new QProgressDialog(i18n("Installing Plugins..."), i18n("Cancel"), 0, 100, d->mMainWindow);
d->installDialog->setWindowModality(Qt::WindowModal);
- d->installDialog->setAutoClose(false);
connect(d->installDialog, SIGNAL(canceled()), SLOT(cancelInstall()));
Appstream::Database appstreamDatabase;
@@ -396,14 +395,14 @@ void KIPIInterface::packageFinished(PackageKit::Transaction::Exit status, uint r
if (status == PackageKit::Transaction::Exit::ExitSuccess) {
d->installDialog->setLabelText(i18n("Image plugins have been installed."));
d->installDialog->setValue(100);
- d->installDialog->setCancelButtonText("&Close");
+ KMessageBox::information(d->mMainWindow, i18n("Image plugins have been installed."));
d->mPluginLoader = 0;
loadPlugins();
d->mPluginMenu->removeAction(d->mInstallPluginAction);
d->mPluginMenu->removeAction(d->mNoPluginAction);
} else {
- d->installDialog->setLabelText("Could not install plugins.");
- d->installDialog->setCancelButtonText("&Close");
+ d->installDialog->setValue(100);
+ KMessageBox::information(d->mMainWindow, i18n("Could not install plugins."));
}
}