diff mbox series

[3/8] kernel-shark-qt: Put error messages always on top

Message ID 20181101214512.18684-4-ykaradzhov@vmware.com (mailing list archive)
State Accepted
Commit 2f723803a467a58b9e7bdaa2e9efa69c9f2d1662
Headers show
Series This series of patches contains various independent | expand

Commit Message

Yordan Karadzhov Nov. 1, 2018, 9:45 p.m. UTC
When an error message is shown its widget must be placed always on top
of all other windows. Also the user shouldn't be able to do anything
else, before closing the error message widget.

Signed-off-by: Yordan Karadzhov <ykaradzhov@vmware.com>
---
 kernel-shark-qt/src/KsMainWindow.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/kernel-shark-qt/src/KsMainWindow.cpp b/kernel-shark-qt/src/KsMainWindow.cpp
index b3cbc3b..4f9a6e2 100644
--- a/kernel-shark-qt/src/KsMainWindow.cpp
+++ b/kernel-shark-qt/src/KsMainWindow.cpp
@@ -859,8 +859,9 @@  void KsMainWindow::_error(const QString &text, const QString &errCode,
 	if (unloadPlugins)
 		_plugins.unloadAll();
 
-	em->showMessage(text, errCode);
 	qCritical() << "ERROR: " << text;
+	em->showMessage(text, errCode);
+	em->exec();
 }
 
 /**