Added comment.
This commit is contained in:
parent
f42c82503f
commit
89c4738245
@ -50,11 +50,16 @@ Notification::Notification() : QWidget(0), m_title(QString()), m_text(QString())
|
||||
QDBusConnection::sessionBus(), this);
|
||||
|
||||
if (m_dBusInterface->isValid()) {
|
||||
m_dBusInterface->connection().connect("org.freedesktop.Notifications",
|
||||
"/org/freedesktop/Notifications",
|
||||
"org.freedesktop.Notifications",
|
||||
"NotificationClosed",
|
||||
this, SLOT(notificationClosed(uint,uint)));
|
||||
QDBusConnection conn = m_dBusInterface->connection();
|
||||
|
||||
if (!conn.connect("org.freedesktop.Notifications",
|
||||
"/org/freedesktop/Notifications",
|
||||
"org.freedesktop.Notifications",
|
||||
"NotificationClosed",
|
||||
this, SLOT(notificationClosed(uint,uint)))) {
|
||||
qWarning("Failed to connec notifications to 'NotificationClosed' signal, last error: '%s'.",
|
||||
qPrintable(conn.lastError().name()));
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
@ -52,7 +52,7 @@ class Notification : public QWidget {
|
||||
void loadSettings();
|
||||
|
||||
#if defined(Q_OS_LINUX)
|
||||
private slots:
|
||||
public slots:
|
||||
void notificationClosed(uint id, uint reason);
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user