Changeset 102556 in vbox
- Timestamp:
- Dec 8, 2023 5:17:43 PM (15 months ago)
- svn:sync-xref-src-repo-rev:
- 160702
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r102553 r102556 1657 1657 return; 1658 1658 1659 /* Create instance if not yet created: */ 1659 1660 if (!m_pVMInformationDialog) 1661 { 1660 1662 m_pVMInformationDialog = new UIVMInformationDialog; 1661 1662 if (m_pVMInformationDialog)1663 {1664 m_pVMInformationDialog->show();1665 m_pVMInformationDialog->raise();1666 m_pVMInformationDialog->setWindowState(m_pVMInformationDialog->windowState() & ~Qt::WindowMinimized);1667 m_pVMInformationDialog->activateWindow();1668 1663 connect(m_pVMInformationDialog, &UIVMInformationDialog::sigClose, 1669 1664 this, &UIMachineLogic::sltCloseInformationDialog); 1670 1665 } 1666 1667 /* Expose instance: */ 1668 UIDesktopWidgetWatchdog::restoreWidget(m_pVMInformationDialog); 1671 1669 } 1672 1670 … … 2033 2031 void UIMachineLogic::sltShowSoftKeyboard() 2034 2032 { 2035 if (!activeMachineWindow()) 2036 return; 2037 2033 /* Do not process if window(s) missed! */ 2034 if (!isMachineWindowsCreated()) 2035 return; 2036 2037 /* Create instance if not yet created: */ 2038 2038 if (!m_pSoftKeyboardDialog) 2039 2039 { 2040 QWidget *pCenterWidget = windowManager().realParentWindow(activeMachineWindow()); 2041 m_pSoftKeyboardDialog = new UISoftKeyboard(0, uimachine(), pCenterWidget, uimachine()->machineName()); 2040 m_pSoftKeyboardDialog = new UISoftKeyboard(0, uimachine(), activeMachineWindow(), uimachine()->machineName()); 2042 2041 connect(m_pSoftKeyboardDialog, &UISoftKeyboard::sigClose, 2043 2042 this, &UIMachineLogic::sltCloseSoftKeyboard); 2044 2043 } 2045 2044 2046 if (m_pSoftKeyboardDialog) 2047 { 2048 m_pSoftKeyboardDialog->show(); 2049 m_pSoftKeyboardDialog->raise(); 2050 m_pSoftKeyboardDialog->setWindowState(m_pSoftKeyboardDialog->windowState() & ~Qt::WindowMinimized); 2051 m_pSoftKeyboardDialog->activateWindow(); 2052 } 2045 /* Expose instance: */ 2046 UIDesktopWidgetWatchdog::restoreWidget(m_pSoftKeyboardDialog); 2053 2047 } 2054 2048
Note:
See TracChangeset
for help on using the changeset viewer.