summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier <dev.git@javispedro.com>2015-12-15 02:41:23 +0100
committerJavier <dev.git@javispedro.com>2015-12-15 02:41:23 +0100
commitb91c2c3aff5c91d6afb2b9fa2f3ceceaf0642d24 (patch)
tree15acfc73b7f9587c73ff277f24d6a2f23dcf5481
parent3b6a0066ef584a076b1a05dc5524cbfa2e2a0bb6 (diff)
downloadlibwatchfish-b91c2c3aff5c91d6afb2b9fa2f3ceceaf0642d24.tar.gz
libwatchfish-b91c2c3aff5c91d6afb2b9fa2f3ceceaf0642d24.zip
fix crash with the new NotificationMonitorPrivate
-rw-r--r--notificationmonitor.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/notificationmonitor.cpp b/notificationmonitor.cpp
index 3b4b035..796c5e0 100644
--- a/notificationmonitor.cpp
+++ b/notificationmonitor.cpp
@@ -371,8 +371,7 @@ DBusHandlerResult NotificationMonitorPrivate::busMessageFilter(DBusConnection *c
void NotificationMonitorPrivate::handleBusSocketActivated()
{
- Q_Q(NotificationMonitor);
- QSocketNotifier *notifier = static_cast<QSocketNotifier*>(q->sender());
+ QSocketNotifier *notifier = static_cast<QSocketNotifier*>(sender());
DBusWatch *watch = static_cast<DBusWatch*>(notifier->property("dbus-watch").value<void*>());
dbus_watch_handle(watch, dbus_watch_get_flags(watch));