add exception

This commit is contained in:
yggverse 2024-08-27 17:45:30 +03:00
parent 659588cd9e
commit 55a995d1af

View file

@ -120,14 +120,15 @@ void Tab::update(
PAGE_NUMBER PAGE_NUMBER
); );
if (pageWidget != nullptr) if (pageWidget == nullptr)
{ {
throw _("Tab page not found!");
}
pageWidget->activate_action( pageWidget->activate_action(
"page.update" "page.update"
); );
} }
} // @TODO
// Private helpers // Private helpers
tab::Label * Tab::get_tabLabel( tab::Label * Tab::get_tabLabel(