Skip to content
Snippets Groups Projects
Commit 1699ec54 authored by mae's avatar mae
Browse files

Shorter progress notification timeout for temporary tasks

Reviewed-by: Roberto Raggi
parent b65c2573
No related branches found
No related tags found
No related merge requests found
...@@ -47,6 +47,7 @@ using namespace Core; ...@@ -47,6 +47,7 @@ using namespace Core;
using namespace Core::Internal; using namespace Core::Internal;
const int notificationTimeout = 8000; const int notificationTimeout = 8000;
const int shortNotificationTimeout = 1000;
namespace Core { namespace Core {
namespace Internal { namespace Internal {
...@@ -240,7 +241,7 @@ void FutureProgress::setFinished() ...@@ -240,7 +241,7 @@ void FutureProgress::setFinished()
m_waitingForUserInteraction = true; m_waitingForUserInteraction = true;
qApp->installEventFilter(this); qApp->installEventFilter(this);
} else if (!m_progress->hasError()) { } else if (!m_progress->hasError()) {
QTimer::singleShot(notificationTimeout, this, SLOT(fadeAway())); QTimer::singleShot(shortNotificationTimeout, this, SLOT(fadeAway()));
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment