Skip to content

Commit

Permalink
Merge pull request #3411 from ann0see/iOS/FixLangBox
Browse files Browse the repository at this point in the history
  • Loading branch information
ann0see authored Oct 14, 2024
2 parents c1718a8 + b552c04 commit 18285f9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,12 @@ CHelpMenu::CHelpMenu ( const bool bIsClient, QWidget* parent ) : QMenu ( tr ( "&
// Language combo box ----------------------------------------------------------
CLanguageComboBox::CLanguageComboBox ( QWidget* parent ) : QComboBox ( parent ), iIdxSelectedLanguage ( INVALID_INDEX )
{
QObject::connect ( this, static_cast<void ( QComboBox::* ) ( int )> ( &QComboBox::activated ), this, &CLanguageComboBox::OnLanguageActivated );
// This requires a Qt::QueuedConnection on iOS due to https://bugreports.qt.io/browse/QTBUG-64577
QObject::connect ( this,
static_cast<void ( QComboBox::* ) ( int )> ( &QComboBox::activated ),
this,
&CLanguageComboBox::OnLanguageActivated,
Qt::QueuedConnection );
}

void CLanguageComboBox::Init ( QString& strSelLanguage )
Expand Down

0 comments on commit 18285f9

Please sign in to comment.