mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 09:05:27 +00:00
add exception
This commit is contained in:
parent
659588cd9e
commit
55a995d1af
1 changed files with 6 additions and 5 deletions
|
|
@ -120,14 +120,15 @@ void Tab::update(
|
|||
PAGE_NUMBER
|
||||
);
|
||||
|
||||
if (pageWidget != nullptr)
|
||||
if (pageWidget == nullptr)
|
||||
{
|
||||
pageWidget->activate_action(
|
||||
"page.update"
|
||||
);
|
||||
throw _("Tab page not found!");
|
||||
}
|
||||
|
||||
} // @TODO
|
||||
pageWidget->activate_action(
|
||||
"page.update"
|
||||
);
|
||||
}
|
||||
|
||||
// Private helpers
|
||||
tab::Label * Tab::get_tabLabel(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue