From e844b24a1a4ccb2330f24e2a4fa104403f1aac90 Mon Sep 17 00:00:00 2001 From: Johann Latocha Date: Mon, 29 Nov 2010 22:46:02 +0100 Subject: Defect #779 --- src/gui/profileDialog.cpp | 12 +++++++++++- src/pvsgui.cpp | 3 --- 2 files changed, 11 insertions(+), 4 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 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); diff --git a/src/pvsgui.cpp b/src/pvsgui.cpp index 1520c81..1f11790 100644 --- a/src/pvsgui.cpp +++ b/src/pvsgui.cpp @@ -312,9 +312,6 @@ void PVSGUI::pvsDisconnect() void PVSGUI::showMessage(QString title, QString msg, bool useDialog) { - if (!isVisible()) - return; - // show balloon message if supported, otherwise show message dialog if (!useDialog && _trayIcon && QSystemTrayIcon::supportsMessages()) _trayIcon->showMessage(title, msg, QSystemTrayIcon::Information, 10000); -- cgit v1.2.3-55-g7522