mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 17:15:28 +00:00
add exceptions
This commit is contained in:
parent
61613c12af
commit
f2e4981fdc
1 changed files with 10 additions and 10 deletions
|
|
@ -33,14 +33,14 @@ Glib::ustring Tab::get_page_title(
|
||||||
PAGE_NUMBER
|
PAGE_NUMBER
|
||||||
);
|
);
|
||||||
|
|
||||||
if (pageWidget != nullptr)
|
if (pageWidget == nullptr)
|
||||||
{
|
{
|
||||||
auto tabPage = (tab::Page *) pageWidget;
|
throw _("Tab page not found!");
|
||||||
|
|
||||||
return tabPage->get_title();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return ""; // @TODO
|
auto tabPage = (tab::Page *) pageWidget;
|
||||||
|
|
||||||
|
return tabPage->get_title();
|
||||||
};
|
};
|
||||||
|
|
||||||
Glib::ustring Tab::get_page_subtitle(
|
Glib::ustring Tab::get_page_subtitle(
|
||||||
|
|
@ -50,14 +50,14 @@ Glib::ustring Tab::get_page_subtitle(
|
||||||
PAGE_NUMBER
|
PAGE_NUMBER
|
||||||
);
|
);
|
||||||
|
|
||||||
if (pageWidget != nullptr)
|
if (pageWidget == nullptr)
|
||||||
{
|
{
|
||||||
auto tabPage = (tab::Page *) pageWidget;
|
throw _("Tab page not found!");
|
||||||
|
|
||||||
return tabPage->get_subtitle();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return ""; // @TODO
|
auto tabPage = (tab::Page *) pageWidget;
|
||||||
|
|
||||||
|
return tabPage->get_subtitle();
|
||||||
};
|
};
|
||||||
|
|
||||||
// Actions
|
// Actions
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue