From: vsr Date: Wed, 13 Jun 2018 09:44:47 +0000 (+0300) Subject: 0023564: [EDF] AsterStudy: introduce a feature to show popup notifications X-Git-Tag: V8_5_asterstudy_v0.11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=3fdf529f8429a544cde2c91ec7daf81511f5e784;p=modules%2Fgui.git 0023564: [EDF] AsterStudy: introduce a feature to show popup notifications - Fix a bug: showNotification() does not return a result --- 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; } /*!