Changeset 88778 in vbox for trunk/src/VBox
- Timestamp:
- Apr 29, 2021 11:06:52 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r88766 r88778 1823 1823 return; 1824 1824 1825 if (m_pVMInformationDialog) 1826 return; 1827 1828 m_pVMInformationDialog = new UIVMInformationDialog(activeMachineWindow()); 1825 if (!m_pVMInformationDialog) 1826 m_pVMInformationDialog = new UIVMInformationDialog(activeMachineWindow()); 1829 1827 1830 1828 if (m_pVMInformationDialog) … … 2583 2581 return; 2584 2582 2585 /* Create a logvieweronly if we don't have one already */2583 /* Create the dialog only if we don't have one already */ 2586 2584 if (m_pProcessControlDialog) 2587 2585 return; … … 2605 2603 void UIMachineLogic::sltCloseGuestControlConsoleDialog() 2606 2604 { 2607 QIManagerDialog* pDialog = qobject_cast<QIManagerDialog*>(sender());2608 if (m_pProcessControlDialog != pDialog || !pDialog)2609 return; 2610 2605 if (!m_pProcessControlDialog) 2606 return; 2607 2608 QIManagerDialog* pDialog = m_pProcessControlDialog; 2611 2609 /* Set the m_pLogViewerDialog to NULL before closing the dialog. or we will have redundant deletes*/ 2612 2610 m_pProcessControlDialog = 0; … … 2811 2809 sltCloseFileManagerDialog(); 2812 2810 sltCloseVMInformationDialog(); 2811 sltCloseGuestControlConsoleDialog(); 2813 2812 } 2814 2813
Note:
See TracChangeset
for help on using the changeset viewer.