From 19729be77c227a93aad29875d091a8d9010e2769 Mon Sep 17 00:00:00 2001
From: Tobias Markmann <tm@ayena.de>
Date: Mon, 29 Sep 2014 09:19:41 +0200
Subject: Always bring profile window to the top on 'Show Profile' so it is
 visible to the user and has focus.

Test-Information:
Checked via running Swift and testing in different scenarios that this
functionality works. This includes situations where the profile window has been
closed, minimised or put in the background.

Change-Id: I367ef555fabe32f7ec1d09e7ff72b17d2071e134

diff --git a/Swift/QtUI/QtProfileWindow.cpp b/Swift/QtUI/QtProfileWindow.cpp
index e643627..9526d63 100644
--- a/Swift/QtUI/QtProfileWindow.cpp
+++ b/Swift/QtUI/QtProfileWindow.cpp
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2011 Remko Tronçon
+ * Copyright (c) 2011-2014 Remko Tronçon
  * Licensed under the GNU General Public License v3.
  * See Documentation/Licenses/GPLv3.txt for more information.
  */
@@ -103,8 +103,9 @@ void QtProfileWindow::setError(const std::string& error) {
 }
 
 void QtProfileWindow::show() {
-	QWidget::show();
+	QWidget::showNormal();
 	QWidget::activateWindow();
+	QWidget::raise();
 }
 
 void QtProfileWindow::hide() {
-- 
cgit v0.10.2-6-g49f6