Show Transfer failed instead of Transfer finished when it fails.
REVIEW: 123199
This commit is contained in:
parent
cda092d2bb
commit
5322bf45cb
1 changed files with 1 additions and 1 deletions
|
@ -168,7 +168,7 @@ void SharePlugin::finished(KJob* job)
|
||||||
KNotification* notification = new KNotification("transferReceived");
|
KNotification* notification = new KNotification("transferReceived");
|
||||||
notification->setIconName(error ? QStringLiteral("dialog-error") : QStringLiteral("dialog-ok"));
|
notification->setIconName(error ? QStringLiteral("dialog-error") : QStringLiteral("dialog-ok"));
|
||||||
notification->setComponentName("kdeconnect");
|
notification->setComponentName("kdeconnect");
|
||||||
notification->setTitle(i18n("Transfer Finished"));
|
notification->setTitle(error ? i18n("Transfer Failed") : i18n("Transfer Finished"));
|
||||||
notification->setText(transferJob->destination().fileName());
|
notification->setText(transferJob->destination().fileName());
|
||||||
notification->setActions(QStringList(i18n("Open")));
|
notification->setActions(QStringList(i18n("Open")));
|
||||||
connect(notification, &KNotification::action1Activated, this, &SharePlugin::openDestinationFolder);
|
connect(notification, &KNotification::action1Activated, this, &SharePlugin::openDestinationFolder);
|
||||||
|
|
Loading…
Reference in a new issue