diff options
-rw-r--r-- | applications/kube-mail/package/contents/ui/main.qml | 6 | ||||
-rw-r--r-- | framework/actions/action.cpp | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/applications/kube-mail/package/contents/ui/main.qml b/applications/kube-mail/package/contents/ui/main.qml index f95f875f..7682a334 100644 --- a/applications/kube-mail/package/contents/ui/main.qml +++ b/applications/kube-mail/package/contents/ui/main.qml | |||
@@ -44,19 +44,19 @@ ApplicationWindow { | |||
44 | // } | 44 | // } |
45 | 45 | ||
46 | KubeAction.Context { | 46 | KubeAction.Context { |
47 | id: "maillistcontext" | 47 | id: maillistcontext |
48 | property variant mail | 48 | property variant mail |
49 | mail: mailListView.currentMail | 49 | mail: mailListView.currentMail |
50 | } | 50 | } |
51 | 51 | ||
52 | KubeAction.Action { | 52 | KubeAction.Action { |
53 | id: "markAsReadAction" | 53 | id: markAsReadAction |
54 | actionId: "org.kde.kube.actions.mark-as-read" | 54 | actionId: "org.kde.kube.actions.mark-as-read" |
55 | context: maillistcontext | 55 | context: maillistcontext |
56 | } | 56 | } |
57 | 57 | ||
58 | KubeAction.Action { | 58 | KubeAction.Action { |
59 | id: "deleteAction" | 59 | id: deleteAction |
60 | actionId: "org.kde.kube.actions.delete" | 60 | actionId: "org.kde.kube.actions.delete" |
61 | context: maillistcontext | 61 | context: maillistcontext |
62 | } | 62 | } |
diff --git a/framework/actions/action.cpp b/framework/actions/action.cpp index 905f6f57..096c93cc 100644 --- a/framework/actions/action.cpp +++ b/framework/actions/action.cpp | |||
@@ -48,7 +48,7 @@ void Action::setContext(Context *context) | |||
48 | //Get notified when any property changes | 48 | //Get notified when any property changes |
49 | for (int i = 0; i < context->metaObject()->propertyCount(); i++) { | 49 | for (int i = 0; i < context->metaObject()->propertyCount(); i++) { |
50 | auto property = context->metaObject()->property(i) ; | 50 | auto property = context->metaObject()->property(i) ; |
51 | qWarning() << "Property " << property.name() << property.hasNotifySignal() << property.notifySignal().name(); | 51 | // qWarning() << "Property " << property.name() << property.hasNotifySignal() << property.notifySignal().name(); |
52 | if (QString(property.name()) != "objectName") { | 52 | if (QString(property.name()) != "objectName") { |
53 | //We do what SIGNAL does to connect to the changed signal automatically | 53 | //We do what SIGNAL does to connect to the changed signal automatically |
54 | QObject::connect(context, "2"+property.notifySignal().name()+"()", this, SLOT(contextChanged())); | 54 | QObject::connect(context, "2"+property.notifySignal().name()+"()", this, SLOT(contextChanged())); |