[kde-workspace] Fix another bug in the systemd-shutdown patch
Kevin Kofler
kkofler at fedoraproject.org
Mon Mar 12 18:52:28 UTC 2012
commit c5ce222b3b7c1fdfc1ce90bbfa84e9951ce2abdb
Author: Kevin Kofler <Kevin at tigcc.ticalc.org>
Date: Mon Mar 12 19:51:55 2012 +0100
Fix another bug in the systemd-shutdown patch
I was using the list instead of the iterate in the loop.
kde-workspace-4.8.0-systemd-shutdown.patch | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/kde-workspace-4.8.0-systemd-shutdown.patch b/kde-workspace-4.8.0-systemd-shutdown.patch
index 1223dc4..800fbee 100644
--- a/kde-workspace-4.8.0-systemd-shutdown.patch
+++ b/kde-workspace-4.8.0-systemd-shutdown.patch
@@ -15,7 +15,7 @@ diff -ur kde-workspace-4.8.0/libs/kworkspace/CMakeLists.txt kde-workspace-4.8.0-
qt4_add_dbus_interface( kworkspace_LIB_SRCS ${ksmserver_xml} ksmserver_interface )
diff -ur kde-workspace-4.8.0/libs/kworkspace/kdisplaymanager.cpp kde-workspace-4.8.0-systemd-shutdown/libs/kworkspace/kdisplaymanager.cpp
--- kde-workspace-4.8.0/libs/kworkspace/kdisplaymanager.cpp 2012-01-18 21:08:42.000000000 +0100
-+++ kde-workspace-4.8.0-systemd-shutdown/libs/kworkspace/kdisplaymanager.cpp 2012-03-12 19:15:42.000000000 +0100
++++ kde-workspace-4.8.0-systemd-shutdown/libs/kworkspace/kdisplaymanager.cpp 2012-03-12 19:49:26.000000000 +0100
@@ -40,6 +40,91 @@
#include <errno.h>
#include <stdio.h>
@@ -175,7 +175,7 @@ diff -ur kde-workspace-4.8.0/libs/kworkspace/kdisplaymanager.cpp kde-workspace-4
+ QList<NamedDBusObjectPath> r = p.value<QList<NamedDBusObjectPath> >();
+ QList<QDBusObjectPath> result;
+ foreach (const NamedDBusObjectPath &namedPath, r)
-+ result.append(r.path);
++ result.append(namedPath.path);
+ // This will contain only local sessions:
+ // - this is only ever called when isSwitchable() is true => local seat
+ // - remote logins into the machine are assigned to other seats
More information about the scm-commits
mailing list