Changeset 102543 in vbox
- Timestamp:
- Dec 8, 2023 2:13:43 PM (10 months ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 3 edited
-
guestctrl/UIFileManagerGuestTable.cpp (modified) (1 diff)
-
softkeyboard/UISoftKeyboard.cpp (modified) (5 diffs)
-
softkeyboard/UISoftKeyboard.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/guestctrl/UIFileManagerGuestTable.cpp
r102485 r102543 1208 1208 else if (enmMachineState != KMachineState_Paused) 1209 1209 cleanAll(); 1210 else if (enmMachineState != KMachineState_Saving) 1211 cleanAll(); 1210 1212 setStateAndEnableWidgets(); 1211 1213 } -
trunk/src/VBox/Frontends/VirtualBox/src/softkeyboard/UISoftKeyboard.cpp
r101658 r102543 3953 3953 , m_pStatusBarWidget(0) 3954 3954 , m_iGeometrySaveTimerId(-1) 3955 , m_fApplicationAboutToQuit(false) 3955 3956 { 3956 3957 setWindowTitle(QString("%1 - %2").arg(m_strMachineName).arg(tr("Soft Keyboard"))); … … 3969 3970 retranslateUi(); 3970 3971 uiCommon().setHelpKeyword(this, "soft-keyb"); 3972 connect(qApp, &QGuiApplication::aboutToQuit, this, &UISoftKeyboard::sltApplicationAboutToQuit); 3971 3973 } 3972 3974 … … 3984 3986 QStringList strNameList = m_pKeyboardWidget->unsavedLayoutsNameList(); 3985 3987 /* Show a warning dialog when there are not saved layouts: */ 3986 if (m_pKeyboardWidget && !strNameList.empty() )3988 if (m_pKeyboardWidget && !strNameList.empty() && !m_fApplicationAboutToQuit) 3987 3989 { 3988 3990 QString strJoinedString = strNameList.join("<br/>"); … … 3999 4001 m_pMachine->releaseKeys(); 4000 4002 emit sigClose(); 4001 event->ignore();4002 4003 } 4003 4004 … … 4386 4387 { 4387 4388 m_pMachine->releaseKeys(); 4389 } 4390 4391 void UISoftKeyboard::sltApplicationAboutToQuit() 4392 { 4393 m_fApplicationAboutToQuit = true; 4388 4394 } 4389 4395 -
trunk/src/VBox/Frontends/VirtualBox/src/softkeyboard/UISoftKeyboard.h
r99948 r102543 113 113 void sltSaveSettings(); 114 114 void sltReleaseKeys(); 115 void sltApplicationAboutToQuit(); 115 116 116 117 private: … … 140 141 UISoftKeyboardStatusBarWidget *m_pStatusBarWidget; 141 142 int m_iGeometrySaveTimerId; 143 bool m_fApplicationAboutToQuit; 142 144 }; 143 145
Note:
See TracChangeset
for help on using the changeset viewer.

