[SCM] kdeconnect packaging branch, master, updated. debian/0.9g-1-1183-g9d69498
Maximiliano Curia
maxy at moszumanska.debian.org
Fri Oct 14 14:29:20 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/kdeconnect.git;a=commitdiff;h=c1ce7f5
The following commit has been merged in the master branch:
commit c1ce7f523c4ae4d0d957c11204ecece974dca197
Author: Albert Vaca <albertvaka at gmail.com>
Date: Wed Nov 11 11:03:00 2015 -0800
Reordered lines
---
plugins/mpriscontrol/mpriscontrolplugin.cpp | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/plugins/mpriscontrol/mpriscontrolplugin.cpp b/plugins/mpriscontrol/mpriscontrolplugin.cpp
index 2dc43f1..cc2fcde 100644
--- a/plugins/mpriscontrol/mpriscontrolplugin.cpp
+++ b/plugins/mpriscontrol/mpriscontrolplugin.cpp
@@ -215,15 +215,16 @@ bool MprisControlPlugin::receivePackage (const NetworkPackage& np)
QString nowPlaying = nowPlayingMap["xesam:title"].toString();
if (nowPlayingMap.contains("xesam:artist")) {
nowPlaying = nowPlayingMap["xesam:artist"].toString() + " - " + nowPlaying;
- }if (nowPlayingMap.contains("mpris:length")) {
+ }
+ answer.set("nowPlaying",nowPlaying);
+
+ if (nowPlayingMap.contains("mpris:length")) {
qlonglong length = nowPlayingMap["mpris:length"].toLongLong();
answer.set("length",length/1000);
}
qlonglong pos = mprisInterface.position();
answer.set("pos", pos/1000);
- answer.set("nowPlaying",nowPlaying);
-
bool playing = (mprisInterface.playbackStatus() == QLatin1String("Playing"));
answer.set("isPlaying", playing);
--
kdeconnect packaging
More information about the pkg-kde-commits
mailing list