diff --git a/src/ui/groups_widgets.cc b/src/ui/groups_widgets.cc index a50612f2..da311943 100644 --- a/src/ui/groups_widgets.cc +++ b/src/ui/groups_widgets.cc @@ -915,7 +915,7 @@ QString DictGroupsWidget::getCurrentGroupName() const const int current = currentIndex(); if ( current >= 0 ) { - auto * w = dynamic_cast< DictGroupWidget * >( widget( current ) ); + auto * w = qobject_cast< DictGroupWidget * >( widget( current ) ); return w->name(); }