[USETUP]
authorEric Kohl <eric.kohl@reactos.org>
Sun, 19 Jan 2014 09:47:27 +0000 (09:47 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Sun, 19 Jan 2014 09:47:27 +0000 (09:47 +0000)
Usetup does not properly return from quit+cancel. Patch by È˜tefan Fulea.
CORE-7783 #resolve #comment Thanks a lot!

svn path=/trunk/; revision=61687

reactos/base/setup/usetup/genlist.c
reactos/base/setup/usetup/genlist.h
reactos/base/setup/usetup/interface/usetup.c

index a1f0f4d..9073ca3 100644 (file)
@@ -482,6 +482,20 @@ ScrollUpGenericList (PGENERIC_LIST List)
 }
 
 
+VOID
+RedrawGenericList(PGENERIC_LIST List)
+{
+    if (List->CurrentEntry == NULL)
+        return;
+
+    if (List->Redraw)
+    {
+        DrawListEntries(List);
+        DrawScrollBarGenericList(List);
+    }
+}
+
+
 VOID
 SetCurrentListEntry(PGENERIC_LIST List, PGENERIC_LIST_ENTRY Entry)
 {
index 2d4cc74..8b09a5e 100644 (file)
@@ -69,6 +69,9 @@ ScrollPageUpGenericList(PGENERIC_LIST List);
 VOID
 ScrollToPositionGenericList (PGENERIC_LIST List, ULONG uIndex);
 
+VOID
+RedrawGenericList(PGENERIC_LIST List);
+
 VOID
 SetCurrentListEntry(PGENERIC_LIST List, PGENERIC_LIST_ENTRY Entry);
 
index 2600053..74bf8e6 100644 (file)
@@ -676,6 +676,8 @@ LanguagePage(PINPUT_RECORD Ir)
         {
             if (ConfirmQuit(Ir) == TRUE)
                 return QUIT_PAGE;
+            else
+                RedrawGenericList(LanguageList);
         }
         else if (Ir->Event.KeyEvent.uChar.AsciiChar == 0x0D)  /* ENTER */
         {
@@ -1354,7 +1356,7 @@ KeyboardSettingsPage(PINPUT_RECORD Ir)
         }
     }
 
-    return DISPLAY_SETTINGS_PAGE;
+    return KEYBOARD_SETTINGS_PAGE;
 }
 
 
@@ -1420,7 +1422,7 @@ LayoutSettingsPage(PINPUT_RECORD Ir)
         }
     }
 
-    return DISPLAY_SETTINGS_PAGE;
+    return LAYOUT_SETTINGS_PAGE;
 }