This is the mail archive of the cygwin-apps mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 2/5] Fix a misplaced PlaceDialog()


The window doesn't get resized correctly if we go back from package chooser
page in install from local directory mode

Noticed by reading the code and confirmed by testing.

2010-11-07  Jon TURNEY  <jon.turney@dronecode.org.uk>

	* choose.cc (OnBack): Move PlaceDialog(false) so window is resized in
	'Install from Local Directory' mode as well.
---
 choose.cc |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/choose.cc b/choose.cc
index c7ff229..53b1bd2 100644
--- a/choose.cc
+++ b/choose.cc
@@ -313,13 +313,12 @@ ChooserPage::OnNext ()
 long
 ChooserPage::OnBack ()
 {
+  PlaceDialog (false);
+
   if (source == IDC_SOURCE_CWD)
     return IDD_LOCAL_DIR;
   else
-    {
-      PlaceDialog (false);
-      return IDD_SITE;
-    }
+    return IDD_SITE;
 }
 
 void
-- 
1.7.2.3


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]