[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [kremotecontrol] /: fix loading of properties for profile actions
From: Michael Zanetti <michael_zanetti () gmx ! net>
Date: 2012-11-04 19:23:41
Message-ID: 20121104192341.A83B2A60C8 () git ! kde ! org
[Download RAW message or body]
Git commit 9abb67755f57b291a5ed6a115e4d7dd1e2731977 by Michael Zanetti.
Committed on 04/11/2012 at 16:16.
Pushed by mzanetti into branch 'master'.
fix loading of properties for profile actions
M +7 -0 kcmremotecontrol/editprofileaction.cpp
M +1 -1 libkremotecontrol/profileserver.cpp
http://commits.kde.org/kremotecontrol/9abb67755f57b291a5ed6a115e4d7dd1e2731977
diff --git a/kcmremotecontrol/editprofileaction.cpp \
b/kcmremotecontrol/editprofileaction.cpp index 5a7fe08..62b0ee5 100644
--- a/kcmremotecontrol/editprofileaction.cpp
+++ b/kcmremotecontrol/editprofileaction.cpp
@@ -172,5 +172,12 @@ void EditProfileAction::refreshArguments(const QModelIndex \
&index) { ui.gbUnique->setEnabled(true);
}
emit formComplete(index.isValid());
+
+ ui.cbAutostart->setChecked(actionTemplate.autostart());
+ ui.cbRepeat->setChecked(actionTemplate.repeat());
+ ui.rbAll->setChecked(actionTemplate.destination() == Action::All);
+ ui.rbNone->setChecked(actionTemplate.destination() == Action::None);
+ ui.rbTop->setChecked(actionTemplate.destination() == Action::Top);
+ ui.rbBottom->setChecked(actionTemplate.destination() == Action::Bottom);
}
diff --git a/libkremotecontrol/profileserver.cpp \
b/libkremotecontrol/profileserver.cpp index d51fd71..8b534c3 100644
--- a/libkremotecontrol/profileserver.cpp
+++ b/libkremotecontrol/profileserver.cpp
@@ -303,7 +303,7 @@ ProfileActionTemplate \
ProfileServer::ProfileXmlContentHandler::parseAction(QDomN
Prototype function(functionName, arguments);
- kDebug() << "creating action template" << actionName << serviceName << nodeName \
<< interfaceName << functionName; + kDebug() << "creating action template" << \
actionName << serviceName << nodeName << interfaceName << functionName << actionType; \
return ProfileActionTemplate(profileId,
actionId,
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic