[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[vidalia-svn] r1708: Restore window state each time the window is opened, not jus (trunk/src/gui/common)
Author: edmanm
Date: 2007-04-10 00:35:01 -0400 (Tue, 10 Apr 2007)
New Revision: 1708
Modified:
trunk/src/gui/common/vidaliawindow.cpp
Log:
Restore window state each time the window is opened, not just the first.
Modified: trunk/src/gui/common/vidaliawindow.cpp
===================================================================
--- trunk/src/gui/common/vidaliawindow.cpp 2007-04-10 03:52:08 UTC (rev 1707)
+++ trunk/src/gui/common/vidaliawindow.cpp 2007-04-10 04:35:01 UTC (rev 1708)
@@ -129,8 +129,6 @@
* specified in the .ui file for this dialog. */
setPalette(QPalette());
#endif
-
- restoreWindowState();
_previouslyShown = true;
}
@@ -140,6 +138,8 @@
activateWindow();
setWindowState(windowState() & ~Qt::WindowMinimized | Qt::WindowActive);
raise();
+ } else {
+ restoreWindowState();
}
} else {
/* Save the last size and position of this window. */