summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohann Latocha2010-11-29 22:46:02 +0100
committerJohann Latocha2010-11-29 22:46:02 +0100
commite844b24a1a4ccb2330f24e2a4fa104403f1aac90 (patch)
tree78f2dc5d6960badd89fdd9533eef7d3b4ca98eb4
parent[PVSMGRTOUCH] SetPassword works again (diff)
downloadpvs-e844b24a1a4ccb2330f24e2a4fa104403f1aac90.tar.gz
pvs-e844b24a1a4ccb2330f24e2a4fa104403f1aac90.tar.xz
pvs-e844b24a1a4ccb2330f24e2a4fa104403f1aac90.zip
Defect #779
-rw-r--r--src/gui/profileDialog.cpp12
-rw-r--r--src/pvsgui.cpp3
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<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);
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);