Update src/ui/groups_widgets.cc

Co-authored-by: shenleban tongying <shenlebantongying@gmail.com>
This commit is contained in:
xiaoyifang 2024-11-05 08:40:47 +08:00 committed by GitHub
parent 5954a5ce2a
commit 488eda61e4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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();
}