Changeset 88912 in vbox for trunk/src/VBox
- Timestamp:
- May 6, 2021 6:06:41 PM (4 years ago)
- 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 3141 3141 for (QMap<QUuid, UISoftKeyboardLayout>::iterator iterator = m_layouts.begin(); iterator != m_layouts.end(); ++iterator) 3142 3142 iterator.value().setEditedBuNotSaved(false); 3143 /* Block sigCurrentLayoutChange since it causes saving set layout to exra data: */ 3144 blockSignals(true); 3143 3145 setCurrentLayout(m_layouts.firstKey()); 3146 blockSignals(false); 3144 3147 } 3145 3148 … … 3976 3979 return; 3977 3980 updateStatusBarMessage(pCurrentLayout->nameString()); 3981 saveCurrentLayout(); 3978 3982 } 3979 3983 … … 4259 4263 } 4260 4264 4265 void UISoftKeyboard::saveCurrentLayout() 4266 { 4267 if (m_pKeyboardWidget && m_pKeyboardWidget->currentLayout()) 4268 gEDataManager->setSoftKeyboardSelectedLayout(m_pKeyboardWidget->currentLayout()->uid()); 4269 } 4270 4261 4271 void UISoftKeyboard::sltSaveSettings() 4262 4272 { … … 4267 4277 m_pKeyboardWidget->hideOSMenuKeys(), 4268 4278 m_pKeyboardWidget->hideMultimediaKeys()); 4269 if (m_pKeyboardWidget->currentLayout())4270 gEDataManager->setSoftKeyboardSelectedLayout(m_pKeyboardWidget->currentLayout()->uid());4271 4279 } 4272 4280 } -
trunk/src/VBox/Frontends/VirtualBox/src/softkeyboard/UISoftKeyboard.h
r88911 r88912 116 116 void saveCustomColorTheme(); 117 117 void saveSelectedColorThemeName(); 118 void saveCurrentLayout(); 118 119 void saveDialogGeometry(); 119 120 void configure();
Note:
See TracChangeset
for help on using the changeset viewer.