From 5322bf45cbb9c1b29c492644264b20e1a6f1147d Mon Sep 17 00:00:00 2001 From: Ashish Bansal Date: Tue, 31 Mar 2015 20:02:19 -0700 Subject: [PATCH] Show Transfer failed instead of Transfer finished when it fails. REVIEW: 123199 --- plugins/share/shareplugin.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/share/shareplugin.cpp b/plugins/share/shareplugin.cpp index f2a4f98f8..c6c97b390 100644 --- a/plugins/share/shareplugin.cpp +++ b/plugins/share/shareplugin.cpp @@ -168,7 +168,7 @@ void SharePlugin::finished(KJob* job) KNotification* notification = new KNotification("transferReceived"); notification->setIconName(error ? QStringLiteral("dialog-error") : QStringLiteral("dialog-ok")); notification->setComponentName("kdeconnect"); - notification->setTitle(i18n("Transfer Finished")); + notification->setTitle(error ? i18n("Transfer Failed") : i18n("Transfer Finished")); notification->setText(transferJob->destination().fileName()); notification->setActions(QStringList(i18n("Open"))); connect(notification, &KNotification::action1Activated, this, &SharePlugin::openDestinationFolder);