From 571f00611e7c8fb26d31b1b25ee5205671c4768b Mon Sep 17 00:00:00 2001 From: Christian Muehlhaeuser Date: Sat, 11 Apr 2015 21:20:15 +0200 Subject: [PATCH] Work around showNormal() being broken in Qt5.4. --- src/libtomahawk/utils/TomahawkUtilsGui.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libtomahawk/utils/TomahawkUtilsGui.cpp b/src/libtomahawk/utils/TomahawkUtilsGui.cpp index 227dd6d4a..31cda44f1 100644 --- a/src/libtomahawk/utils/TomahawkUtilsGui.cpp +++ b/src/libtomahawk/utils/TomahawkUtilsGui.cpp @@ -358,7 +358,9 @@ bringToFront() return; // "Unminimize" first, otherwise the entry in the taskbar will only flash but the window won't come to front - widget->windowHandle()->showNormal(); + widget->show(); + // widget->windowHandle()->showNormal(); // this is fucked: https://bugreports.qt.io/browse/QTBUG-31117 + widget->windowHandle()->requestActivate(); #ifdef HAVE_X11