[SCM] kdeconnect packaging branch, master, updated. debian/0.9g-1-1183-g9d69498
Maximiliano Curia
maxy at moszumanska.debian.org
Fri Oct 14 14:28:29 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/kdeconnect.git;a=commitdiff;h=890e54c
The following commit has been merged in the master branch:
commit 890e54cd4bb03542219bef06689184351cc23d3b
Author: Albert Vaca <albertvaka at gmail.com>
Date: Sat Apr 4 17:20:51 2015 -0700
Removed notification because KIO already provides one.
---
plugins/share/shareplugin.cpp | 14 +-------------
1 file changed, 1 insertion(+), 13 deletions(-)
diff --git a/plugins/share/shareplugin.cpp b/plugins/share/shareplugin.cpp
index ab0b441..0b1fcc8 100644
--- a/plugins/share/shareplugin.cpp
+++ b/plugins/share/shareplugin.cpp
@@ -129,19 +129,7 @@ bool SharePlugin::receivePackage(const NetworkPackage& np)
void SharePlugin::finished(KJob* job)
{
- qCDebug(KDECONNECT_PLUGIN_SHARE) << "File transfer finished";
-
- bool error = (job->error() != 0);
-
- FileTransferJob* transferJob = (FileTransferJob*)job;
- KNotification* notification = new KNotification("transferReceived");
- notification->setIconName(error ? QStringLiteral("dialog-error") : QStringLiteral("dialog-ok"));
- notification->setComponentName("kdeconnect");
- 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);
- notification->sendEvent();
+ qCDebug(KDECONNECT_PLUGIN_SHARE) << "File transfer finished. Success:" + (job->error() != 0);
}
void SharePlugin::openDestinationFolder()
--
kdeconnect packaging
More information about the pkg-kde-commits
mailing list