Browse Source

add exception

CPP-GTK4
yggverse 3 months ago
parent
commit
55a995d1af
  1. 7
      src/app/browser/main/tab.cpp

7
src/app/browser/main/tab.cpp

@ -120,15 +120,16 @@ 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(
const int & PAGE_NUMBER const int & PAGE_NUMBER

Loading…
Cancel
Save