VirtualBox

Changeset 88912 in vbox for trunk/src/VBox


Ignore:
Timestamp:
May 6, 2021 6:06:41 PM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:8161. Saving softkeyboard selected keyboard layout to the extra data as soon as it changes

Location:
trunk/src/VBox/Frontends/VirtualBox/src/softkeyboard
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/softkeyboard/UISoftKeyboard.cpp

    r88911 r88912  
    31413141    for (QMap<QUuid, UISoftKeyboardLayout>::iterator iterator = m_layouts.begin(); iterator != m_layouts.end(); ++iterator)
    31423142        iterator.value().setEditedBuNotSaved(false);
     3143    /* Block sigCurrentLayoutChange since it causes saving set layout to exra data: */
     3144    blockSignals(true);
    31433145    setCurrentLayout(m_layouts.firstKey());
     3146    blockSignals(false);
    31443147}
    31453148
     
    39763979        return;
    39773980    updateStatusBarMessage(pCurrentLayout->nameString());
     3981    saveCurrentLayout();
    39783982}
    39793983
     
    42594263}
    42604264
     4265void UISoftKeyboard::saveCurrentLayout()
     4266{
     4267    if (m_pKeyboardWidget && m_pKeyboardWidget->currentLayout())
     4268        gEDataManager->setSoftKeyboardSelectedLayout(m_pKeyboardWidget->currentLayout()->uid());
     4269}
     4270
    42614271void UISoftKeyboard::sltSaveSettings()
    42624272{
     
    42674277                                              m_pKeyboardWidget->hideOSMenuKeys(),
    42684278                                              m_pKeyboardWidget->hideMultimediaKeys());
    4269         if (m_pKeyboardWidget->currentLayout())
    4270             gEDataManager->setSoftKeyboardSelectedLayout(m_pKeyboardWidget->currentLayout()->uid());
    42714279    }
    42724280}
  • trunk/src/VBox/Frontends/VirtualBox/src/softkeyboard/UISoftKeyboard.h

    r88911 r88912  
    116116    void saveCustomColorTheme();
    117117    void saveSelectedColorThemeName();
     118    void saveCurrentLayout();
    118119    void saveDialogGeometry();
    119120    void configure();
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette