Skip to content

Commit

Permalink
fix: remove some tabText() in groupWidget rename group
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyifang committed Nov 4, 2024
1 parent 0d59531 commit c1327f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ui/groups_widgets.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand All @@ -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 ) );
}
Expand Down

0 comments on commit c1327f1

Please sign in to comment.