From c1327f102181777c12b6e12c1ceebb88bb9a5971 Mon Sep 17 00:00:00 2001 From: xiaoyifang Date: Mon, 4 Nov 2024 10:51:57 +0800 Subject: [PATCH] fix: remove some tabText() in groupWidget rename group --- src/ui/groups_widgets.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ui/groups_widgets.cc b/src/ui/groups_widgets.cc index b5d55a69f..824e93304 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( x ) ); + auto w = dynamic_cast< DictGroupWidget & >( *widget( current ) ); return w.name(); } @@ -928,7 +928,7 @@ void DictGroupsWidget::renameCurrentGroup( QString const & name ) const int current = currentIndex(); if ( current >= 0 ) { - auto w = dynamic_cast< DictGroupWidget & >( *widget( x ) ); + auto w = dynamic_cast< DictGroupWidget & >( *widget( current ) ); w->setName( name ); setTabText( current, Utils::escapeAmps( name ) ); }