From b09eaffed6a9b04477d51a2a4cbb428ce1149fc6 Mon Sep 17 00:00:00 2001
From: Tobias Markmann <tm@ayena.de>
Date: Fri, 3 Oct 2014 18:02:49 +0200
Subject: Always bring 'Edit contact' window to the top on 'Edit contact' so it
 is visible to the user and has focus.

Test-Information:
Checked via running Swift and testing in different scenarios (minimizing,
background) that this functionality works.

Change-Id: I49ed16b09d23acd052c387c3c1c4fe60f2aa9415

diff --git a/Swift/QtUI/QtContactEditWindow.cpp b/Swift/QtUI/QtContactEditWindow.cpp
index 6520c0a..c175934 100644
--- a/Swift/QtUI/QtContactEditWindow.cpp
+++ b/Swift/QtUI/QtContactEditWindow.cpp
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2010 Kevin Smith
+ * Copyright (c) 2010-2014 Kevin Smith
  * Licensed under the GNU General Public License v3.
  * See Documentation/Licenses/GPLv3.txt for more information.
  */
@@ -75,8 +75,9 @@ void QtContactEditWindow::setEnabled(bool b) {
 }
 
 void QtContactEditWindow::show() {
-	QWidget::show();
+	QWidget::showNormal();
 	QWidget::activateWindow();
+	QWidget::raise();
 }
 
 void QtContactEditWindow::hide() {
-- 
cgit v0.10.2-6-g49f6