diff options
author | Johann Latocha | 2010-11-29 22:46:02 +0100 |
---|---|---|
committer | Johann Latocha | 2010-11-29 22:46:02 +0100 |
commit | e844b24a1a4ccb2330f24e2a4fa104403f1aac90 (patch) | |
tree | 78f2dc5d6960badd89fdd9533eef7d3b4ca98eb4 /src/gui/profileDialog.cpp | |
parent | [PVSMGRTOUCH] SetPassword works again (diff) | |
download | pvs-e844b24a1a4ccb2330f24e2a4fa104403f1aac90.tar.gz pvs-e844b24a1a4ccb2330f24e2a4fa104403f1aac90.tar.xz pvs-e844b24a1a4ccb2330f24e2a4fa104403f1aac90.zip |
Defect #779
Diffstat (limited to 'src/gui/profileDialog.cpp')
-rw-r--r-- | src/gui/profileDialog.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/gui/profileDialog.cpp b/src/gui/profileDialog.cpp index 07a97cf..9f7e8a5 100644 --- a/src/gui/profileDialog.cpp +++ b/src/gui/profileDialog.cpp @@ -83,10 +83,20 @@ void profileDialog::load() QList<ConnectionFrame*> clients = MainWindow::getConnectionWindow()->getAllFrameOnWindow(); _profiles->beginGroup(_current); + QPoint shift(0,0); foreach (ConnectionFrame *client, clients) { QString key = client->getTaskbarTitle(); - client->move(_profiles->value(key).toPoint()); + QPoint position = _profiles->value(key).toPoint(); + if (position != QPoint(0,0)) + client->move(position); + else + { + client->move(shift); + shift += QPoint(10,10); + } + + } _profiles->endGroup(); _profiles->setValue("current", _current); |