Locale: double-click to close locale-selection dialog
This commit is contained in:
parent
945a96bb51
commit
98d58215ad
@ -69,6 +69,8 @@ LCLocaleDialog::LCLocaleDialog( const QString& guessedLCLocale,
|
|||||||
connect( dbb->button( QDialogButtonBox::Cancel ), &QPushButton::clicked,
|
connect( dbb->button( QDialogButtonBox::Cancel ), &QPushButton::clicked,
|
||||||
this, &QDialog::reject );
|
this, &QDialog::reject );
|
||||||
|
|
||||||
|
connect( m_localesWidget, &QListWidget::itemDoubleClicked,
|
||||||
|
this, &QDialog::accept );
|
||||||
connect( m_localesWidget, &QListWidget::itemSelectionChanged,
|
connect( m_localesWidget, &QListWidget::itemSelectionChanged,
|
||||||
[this, dbb]()
|
[this, dbb]()
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user