- Timestamp:
- Oct 29, 2018 4:37:53 PM (6 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/runtime
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp
r75091 r75158 857 857 , m_fIsHidLedsSyncEnabled(false) 858 858 , m_pLogViewerDialog(0) 859 , m_pGuestControlDialog(0) 859 , m_pFileManagerDialog(0) 860 , m_pProcessControlDialog(0) 860 861 { 861 862 } … … 1786 1787 1787 1788 /* Create a logviewer only if we don't have one already */ 1788 if (m_p GuestControlDialog)1789 return; 1790 1791 QIManagerDialog *p GuestControlDialog;1789 if (m_pFileManagerDialog) 1790 return; 1791 1792 QIManagerDialog *pFileManagerDialog; 1792 1793 UIGuestControlFileManagerDialogFactory dialogFactory(actionPool(), console().GetGuest(), machine().GetName()); 1793 dialogFactory.prepare(p GuestControlDialog, activeMachineWindow());1794 if (p GuestControlDialog)1795 { 1796 m_p GuestControlDialog = pGuestControlDialog;1794 dialogFactory.prepare(pFileManagerDialog, activeMachineWindow()); 1795 if (pFileManagerDialog) 1796 { 1797 m_pFileManagerDialog = pFileManagerDialog; 1797 1798 1798 1799 /* Show instance: */ 1799 p GuestControlDialog->show();1800 p GuestControlDialog->setWindowState(pGuestControlDialog->windowState() & ~Qt::WindowMinimized);1801 p GuestControlDialog->activateWindow();1802 connect(p GuestControlDialog, &QIManagerDialog::sigClose,1800 pFileManagerDialog->show(); 1801 pFileManagerDialog->setWindowState(pFileManagerDialog->windowState() & ~Qt::WindowMinimized); 1802 pFileManagerDialog->activateWindow(); 1803 connect(pFileManagerDialog, &QIManagerDialog::sigClose, 1803 1804 this, &UIMachineLogic::sltCloseGuestControlFileManagerDialog); 1804 1805 } … … 1808 1809 { 1809 1810 QIManagerDialog* pDialog = qobject_cast<QIManagerDialog*>(sender()); 1810 if (m_p GuestControlDialog != pDialog || !pDialog)1811 if (m_pFileManagerDialog != pDialog || !pDialog) 1811 1812 return; 1812 1813 1813 1814 /* Set the m_pLogViewerDialog to NULL before closing the dialog. or we will have redundant deletes*/ 1814 m_p GuestControlDialog = 0;1815 m_pFileManagerDialog = 0; 1815 1816 pDialog->close(); 1816 1817 UIGuestControlFileManagerDialogFactory().cleanup(pDialog); … … 1823 1824 1824 1825 /* Create a logviewer only if we don't have one already */ 1825 if (m_p GuestControlDialog)1826 return; 1827 1828 QIManagerDialog *p GuestControlDialog;1826 if (m_pProcessControlDialog) 1827 return; 1828 1829 QIManagerDialog *pProcessControlDialog; 1829 1830 UIGuestProcessControlDialogFactory dialogFactory(actionPool(), console().GetGuest(), machine().GetName()); 1830 dialogFactory.prepare(p GuestControlDialog, activeMachineWindow());1831 if (p GuestControlDialog)1832 { 1833 m_p GuestControlDialog = pGuestControlDialog;1831 dialogFactory.prepare(pProcessControlDialog, activeMachineWindow()); 1832 if (pProcessControlDialog) 1833 { 1834 m_pProcessControlDialog = pProcessControlDialog; 1834 1835 1835 1836 /* Show instance: */ 1836 p GuestControlDialog->show();1837 p GuestControlDialog->setWindowState(pGuestControlDialog->windowState() & ~Qt::WindowMinimized);1838 p GuestControlDialog->activateWindow();1839 connect(p GuestControlDialog, &QIManagerDialog::sigClose,1837 pProcessControlDialog->show(); 1838 pProcessControlDialog->setWindowState(pProcessControlDialog->windowState() & ~Qt::WindowMinimized); 1839 pProcessControlDialog->activateWindow(); 1840 connect(pProcessControlDialog, &QIManagerDialog::sigClose, 1840 1841 this, &UIMachineLogic::sltCloseGuestProcessControlDialog); 1841 1842 } … … 1845 1846 { 1846 1847 QIManagerDialog* pDialog = qobject_cast<QIManagerDialog*>(sender()); 1847 if (m_p GuestControlDialog != pDialog || !pDialog)1848 if (m_pProcessControlDialog != pDialog || !pDialog) 1848 1849 return; 1849 1850 1850 1851 /* Set the m_pLogViewerDialog to NULL before closing the dialog. or we will have redundant deletes*/ 1851 m_p GuestControlDialog = 0;1852 m_pProcessControlDialog = 0; 1852 1853 pDialog->close(); 1853 1854 UIGuestProcessControlDialogFactory().cleanup(pDialog); -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.h
r75087 r75158 431 431 /** Holds the log viewer dialog instance. */ 432 432 QIManagerDialog *m_pLogViewerDialog; 433 QIManagerDialog *m_pGuestControlDialog; 433 QIManagerDialog *m_pFileManagerDialog; 434 QIManagerDialog *m_pProcessControlDialog; 434 435 435 436 /* Friend classes: */
Note:
See TracChangeset
for help on using the changeset viewer.