mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 00:14:06 +00:00
Update src/ui/groups_widgets.cc
Co-authored-by: shenleban tongying <shenlebantongying@gmail.com>
This commit is contained in:
parent
5954a5ce2a
commit
488eda61e4
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue