From c2e6172d21dc317d16b635c7c73f411035c2ea8b Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Wed, 29 Jul 2015 06:40:27 +0200 Subject: [PATCH] Some more more polishing. --- src/gui/notifications/notification.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/notifications/notification.cpp b/src/gui/notifications/notification.cpp index efb7d4c18..28128d088 100644 --- a/src/gui/notifications/notification.cpp +++ b/src/gui/notifications/notification.cpp @@ -99,7 +99,6 @@ void Notification::notify(const QString &text, const QString &title, const QIcon argument_list << (int)-1; // timeout in ms // TODO: obrazky https://dev.visucore.com/bitcoin/doxygen/notificator_8cpp_source.html - QDBusMessage response = m_dBusInterface->callWithArgumentList(QDBus::AutoDetect, "Notify", argument_list); if (response.arguments().size() == 1) { @@ -109,6 +108,7 @@ void Notification::notify(const QString &text, const QString &title, const QIcon return; } +#endif if (m_clickTarget != NULL && m_clickSlot != NULL) { // Connect invokation target. @@ -121,7 +121,7 @@ void Notification::notify(const QString &text, const QString &title, const QIcon QTimer::singleShot(20, this, SLOT(show())); QTimer::singleShot(0, this, SLOT(repaint())); - m_timerId = startTimer(10000); + m_timerId = startTimer(TRAY_ICON_BUBBLE_TIMEOUT); } void Notification::notify(const QString &text, const QString &title, QSystemTrayIcon::MessageIcon icon,