This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
[PATCH 2/5] Fix a misplaced PlaceDialog()
- From: Jon TURNEY <jon dot turney at dronecode dot org dot uk>
- To: cygwin-apps at cygwin dot com
- Cc: Jon TURNEY <jon dot turney at dronecode dot org dot uk>
- Date: Tue, 9 Nov 2010 13:29:44 +0000
- Subject: [PATCH 2/5] Fix a misplaced PlaceDialog()
- References: <1289309387-5232-1-git-send-email-jon.turney@dronecode.org.uk>
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