[SCM] kdeconnect packaging branch, master, updated. debian/0.9g-1-1183-g9d69498
Maximiliano Curia
maxy at moszumanska.debian.org
Fri Oct 14 14:27:34 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/kdeconnect.git;a=commitdiff;h=5c66b89
The following commit has been merged in the master branch:
commit 5c66b891e292c76416099724044ad2fdac5bcd79
Author: Albert Vaca <albertvaka at gmail.com>
Date: Thu Jun 5 22:05:26 2014 +0200
Fixed bug with mixers not being correctly converted to dbus paths
BUG: 333709
---
kded/plugins/pausemusic/pausemusicplugin.cpp | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/kded/plugins/pausemusic/pausemusicplugin.cpp b/kded/plugins/pausemusic/pausemusicplugin.cpp
index ae49e1e..33bdfb0 100644
--- a/kded/plugins/pausemusic/pausemusicplugin.cpp
+++ b/kded/plugins/pausemusic/pausemusicplugin.cpp
@@ -44,7 +44,11 @@ int PauseMusicPlugin::isKMixMuted() {
return -1;
mixer.replace(':','_');
+ mixer.replace('.','_');
+ mixer.replace('-','_');
control.replace(':','_');
+ control.replace('.','_');
+ control.replace('-','_');
QDBusInterface mixerInterface("org.kde.kmix", "/Mixers/"+mixer+"/"+control, "org.kde.KMix.Control");
if (mixerInterface.property("mute").toBool()) return 1;
@@ -80,7 +84,7 @@ bool PauseMusicPlugin::receivePackage(const NetworkPackage& np)
if (pauseConditionFulfilled) {
if (use_mute) {
QDBusInterface kmixInterface("org.kde.kmix", "/kmix/KMixWindow/actions/mute", "org.qtproject.Qt.QAction");
- if (isKMixMuted() > 0) {
+ if (isKMixMuted() == 0) {
pausedSources.insert("mute"); //Fake source
kmixInterface.call("trigger");
}
@@ -104,7 +108,7 @@ bool PauseMusicPlugin::receivePackage(const NetworkPackage& np)
if (pausedSources.empty()) return false;
if (use_mute) {
QDBusInterface kmixInterface("org.kde.kmix", "/kmix/KMixWindow/actions/mute", "org.qtproject.Qt.QAction");
- if (isKMixMuted() == 0) {
+ if (isKMixMuted() > 0) {
kmixInterface.call("trigger");
}
} else {
--
kdeconnect packaging
More information about the pkg-kde-commits
mailing list