From 3fdf529f8429a544cde2c91ec7daf81511f5e784 Mon Sep 17 00:00:00 2001 From: vsr Date: Wed, 13 Jun 2018 12:44:47 +0300 Subject: [PATCH] 0023564: [EDF] AsterStudy: introduce a feature to show popup notifications - Fix a bug: showNotification() does not return a result --- src/STD/STD_Application.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/STD/STD_Application.cxx b/src/STD/STD_Application.cxx index 1aacab913..e3edbab4b 100755 --- a/src/STD/STD_Application.cxx +++ b/src/STD/STD_Application.cxx @@ -736,6 +736,7 @@ void STD_Application::updateCommandsStatus() */ int STD_Application::showNotification(const QString& message, const QString& title, int timeout) { + int uid = -1; QtxNotify* ntfMgr = notifyMgr(); if (ntfMgr) { @@ -746,8 +747,9 @@ int STD_Application::showNotification(const QString& message, const QString& tit if (aResMgr) delay = aResMgr->integerValue("notification", "timeout", 0) * 1000; } - ntfMgr->showNotification(message, title, qMax(delay, 0)); + uid = ntfMgr->showNotification(message, title, qMax(delay, 0)); } + return uid; } /*! -- 2.39.2