[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[vidalia-svn] r2071: If no geometry has been saved for a window, call adjustSize( (trunk/src/gui/common)



Author: edmanm
Date: 2007-10-22 23:49:53 -0400 (Mon, 22 Oct 2007)
New Revision: 2071

Modified:
   trunk/src/gui/common/vidaliawindow.cpp
Log:
If no geometry has been saved for a window, call adjustSize() to make the
window fit its contents.


Modified: trunk/src/gui/common/vidaliawindow.cpp
===================================================================
--- trunk/src/gui/common/vidaliawindow.cpp	2007-10-23 03:16:23 UTC (rev 2070)
+++ trunk/src/gui/common/vidaliawindow.cpp	2007-10-23 03:49:53 UTC (rev 2071)
@@ -75,7 +75,10 @@
 {
 #if QT_VERSION >= 0x040200
   QByteArray geometry = getSetting("Geometry", QByteArray()).toByteArray();
-  restoreGeometry(geometry);
+  if (geometry.isEmpty())
+    adjustSize();
+  else
+    restoreGeometry(geometry);
 #else
   QRect screen = QDesktopWidget().availableGeometry();