Browse Source

add exception

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

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

@ -120,14 +120,15 @@ void Tab::update( @@ -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…
Cancel
Save