Locale: double-click to close locale-selection dialog

This commit is contained in:
Adriaan de Groot 2017-06-06 09:31:22 -05:00 committed by Philip
parent 945a96bb51
commit 98d58215ad

View File

@ -69,6 +69,8 @@ LCLocaleDialog::LCLocaleDialog( const QString& guessedLCLocale,
connect( dbb->button( QDialogButtonBox::Cancel ), &QPushButton::clicked,
this, &QDialog::reject );
connect( m_localesWidget, &QListWidget::itemDoubleClicked,
this, &QDialog::accept );
connect( m_localesWidget, &QListWidget::itemSelectionChanged,
[this, dbb]()
{