mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-12 09:20:36 +00:00
LibGUI: Allow a wizard page to return null as its next page
This commit is contained in:
parent
b072cb725f
commit
714ce4741d
Notes:
sideshowbarker
2024-07-18 21:10:30 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/714ce4741d0 Pull-request: https://github.com/SerenityOS/serenity/pull/5866 Issue: https://github.com/SerenityOS/serenity/issues/4269 Issue: https://github.com/SerenityOS/serenity/issues/4821 Issue: https://github.com/SerenityOS/serenity/issues/5550 Reviewed-by: https://github.com/awesomekling
1 changed files with 5 additions and 1 deletions
|
@ -79,7 +79,11 @@ WizardDialog::WizardDialog(Window* parent_window)
|
|||
if (!current_page().can_go_next())
|
||||
return done(ExecOK);
|
||||
|
||||
push_page(*current_page().next_page());
|
||||
auto next_page = current_page().next_page();
|
||||
if (!next_page)
|
||||
return done(ExecOK);
|
||||
|
||||
push_page(*next_page);
|
||||
};
|
||||
|
||||
auto& button_spacer = nav_container_widget.add<Widget>();
|
||||
|
|
Loading…
Reference in a new issue