VirtualBox

Ignore:
Timestamp:
Jun 10, 2021 4:09:26 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
145052
Message:

FE/Qt: bugref:9930. Restricting the tab closing stuff to dialog case only

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/logviewer/UIVMLogViewerWidget.cpp

    r89607 r89608  
    312312            pTabBar->setTabData(i, true);
    313313            /* Add close button only for manager UI. */
    314             if (uiCommon().uiType() == UICommon::UIType_SelectorUI)
     314            if (uiCommon().uiType() == UICommon::UIType_SelectorUI && m_enmEmbedding == EmbedTo_Dialog)
    315315            {
    316316                UIVMLogTab *pTab = logTab(i);
     
    320320                    pCloseButton->setIcon(UIIconPool::iconSet(":/close_16px.png"));
    321321                    pTabBar->setTabButton(i, QTabBar::RightSide, pCloseButton);
     322                    pCloseButton->setToolTip(tr("Close this machine's logs"));
    322323                    connect(pCloseButton, &UILogTabCloseButton::clicked, this, &UIVMLogViewerWidget::sltTabCloseButtonClick);
    323324                }
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