summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Markmann <tm@ayena.de>2014-10-03 16:02:49 (GMT)
committerSwift Review <review@swift.im>2014-10-06 09:54:52 (GMT)
commitb09eaffed6a9b04477d51a2a4cbb428ce1149fc6 (patch)
tree08ab84645c938d20f3493efdfa5e3c23ab28b002 /Swift/QtUI
parent3742d8fe17f558f9f6a5e26ac10e5ec3f0c3ae6c (diff)
downloadswift-b09eaffed6a9b04477d51a2a4cbb428ce1149fc6.zip
swift-b09eaffed6a9b04477d51a2a4cbb428ce1149fc6.tar.bz2
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
Diffstat (limited to 'Swift/QtUI')
-rw-r--r--Swift/QtUI/QtContactEditWindow.cpp5
1 files changed, 3 insertions, 2 deletions
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() {