VirtualBox

Changeset 70755 in vbox


Ignore:
Timestamp:
Jan 26, 2018 8:09:08 AM (7 years ago)
Author:
vboxsync
Message:

FE/Qt bugref:9072 Don't create a logviewer dialog if an embedded logviewer instance already exists

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/UISelectorWindow.cpp

    r70603 r70755  
    10141014    AssertMsgReturnVoid(!items.isEmpty(), ("At least one item should be selected!\n"));
    10151015
     1016    /* First check if a logviewer is already opened in embedded mode: */
     1017    if (m_pPaneToolsMachine->isToolOpened(ToolTypeMachine_LogViewer))
     1018    {
     1019        sltHandleToolOpenedMachine(ToolTypeMachine_LogViewer);
     1020        return;
     1021    }
     1022
    10161023    /* For each selected item: */
    10171024    foreach (UIVMItem *pItem, items)
     
    11721179        && m_pPaneToolsMachine->isToolOpened(ToolTypeMachine_Details))
    11731180        m_pPaneToolsMachine->setItems(currentItems());
    1174     /* If that was 'Snapshot' => pass there current or null machine: */
     1181    /* If that was 'Snapshot' or 'LogViewer' => pass there current or null machine: */
    11751182    if (enmType == ToolTypeMachine_Snapshots || enmType == ToolTypeMachine_LogViewer)
    11761183    {
     
    27152722    return false;
    27162723}
    2717 
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