Commit bf347488 authored by LE BRETON Come's avatar LE BRETON Come
Browse files

Static cast is useless...

parent ca8fc6ab
......@@ -94,7 +94,8 @@ dtkWidgetsMenu *dtkWidgetsMainWindow::populateThemesMenu(void)
d->menu_themes = d->menubar->addMenu(fa::paintbrush, "Themes");
auto *inner_menu_theme = d->menu_themes->addMenu(fa::paintbrush, "Choose Theme");
for (const QString theme : dtkThemesEngine::instance()->themes()) {
connect(static_cast<dtkWidgetsMenuItem *>(inner_menu_theme->addItem(new dtkWidgetsMenuItemTheme(theme))), &dtkWidgetsMenuItem::clicked, [=] (void) -> void {
dtkWidgetsMenuItem * item = inner_menu_theme->addItem(new dtkWidgetsMenuItemTheme(theme));
connect(item, &dtkWidgetsMenuItem::clicked, [=] () {
dtkThemesEngine::instance()->apply(theme);
});
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment