VirtualBox

Changeset 88778 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 29, 2021 11:06:52 AM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:8161. Some more fixes for information dialog

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIMachineLogic.cpp

    r88766 r88778  
    18231823        return;
    18241824
    1825     if (m_pVMInformationDialog)
    1826         return;
    1827 
    1828     m_pVMInformationDialog = new UIVMInformationDialog(activeMachineWindow());
     1825    if (!m_pVMInformationDialog)
     1826        m_pVMInformationDialog = new UIVMInformationDialog(activeMachineWindow());
    18291827
    18301828    if (m_pVMInformationDialog)
     
    25832581        return;
    25842582
    2585     /* Create a logviewer only if we don't have one already */
     2583    /* Create the dialog only if we don't have one already */
    25862584    if (m_pProcessControlDialog)
    25872585        return;
     
    26052603void UIMachineLogic::sltCloseGuestControlConsoleDialog()
    26062604{
    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;
    26112609    /* Set the m_pLogViewerDialog to NULL before closing the dialog. or we will have redundant deletes*/
    26122610    m_pProcessControlDialog = 0;
     
    28112809    sltCloseFileManagerDialog();
    28122810    sltCloseVMInformationDialog();
     2811    sltCloseGuestControlConsoleDialog();
    28132812}
    28142813
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette