Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyifang committed Dec 30, 2024
1 parent 144ab9d commit be0166e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ui/scanpopup.cc
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@ ScanPopup::ScanPopup( QWidget * parent,
{
ui.setupUi( this );
toolbar = new QToolBar("Dictionaries Toolbar", this );
actionGroup = new QActionGroup(this);
actionGroup->setExclusive(true);

if ( layoutDirection() == Qt::RightToLeft ) {
// Adjust button icons for Right-To-Left layout
ui.goBackButton->setIcon( QIcon( ":/icons/next.svg" ) );
Expand Down Expand Up @@ -320,7 +319,8 @@ void ScanPopup::updateFoundInDictsList()
if( actionGroup ){
delete actionGroup;
}
actionGroup = new ActionGroup( this );
actionGroup = new QActionGroup( this );
actionGroup->setExclusive(true);
for ( QStringList::const_iterator i = ids.constBegin(); i != ids.constEnd(); ++i ) {
// Find this dictionary

Expand Down

0 comments on commit be0166e

Please sign in to comment.