Index: sources/gui/qml/pages/settings/SettingsLocalization.qml =================================================================== diff -u -r90e68000c37bc14b0dfd5f18caf425c24cc0b5f4 -rd866ef66b21f114f07cb80a07860900cd43daff0 --- sources/gui/qml/pages/settings/SettingsLocalization.qml (.../SettingsLocalization.qml) (revision 90e68000c37bc14b0dfd5f18caf425c24cc0b5f4) +++ sources/gui/qml/pages/settings/SettingsLocalization.qml (.../SettingsLocalization.qml) (revision d866ef66b21f114f07cb80a07860900cd43daff0) @@ -27,9 +27,8 @@ */ SettingsBase { id: _root itemIndex : SettingsStack.Localization + confirmVisible : true - confirmVisible : false - Row { id: _settingsRoInputRow anchors.centerIn: parent @@ -98,16 +97,28 @@ } } + onConfirmClicked : { + _confirmDialog.titleText = _root.title + _confirmDialog.open() + } + + Connections { target: _confirmDialog + function onAccepted() { + if ( _confirmDialog.titleText == _root.title ) { // use the title as the indication of what has been confirmed and if that is related to this function. + vLocalization.doAdjustment(_settingsLanguageCombo.currentIndex) + } + } + } + Connections { target: _settingsLanguageCombo + function onCurrentIndexChanged() { notificationText = "" console.log("\t" + _settingsLanguageCombo.currentIndex) } function onCurrentTextChanged() { console.log(_settingsLanguageCombo.currentText, ":" , _settingsLanguageCombo.displayText) -// vSettings.language = _settingsLanguageCombo.currentText - } } }