VirtualBox

Changeset 68246 in vbox for trunk/src


Ignore:
Timestamp:
Aug 2, 2017 1:50:20 PM (7 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:8900: UIDesktopPane: Fixing couple of layout issues.

File:
1 edited

Legend:

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

    r68236 r68246  
    531531    QLayoutItem *pChild = 0;
    532532    while ((pChild = m_pLayoutWidget->takeAt(0)) != 0)
     533    {
     534        /* Delete widget wrapped by the item first: */
     535        if (pChild->widget())
     536            delete pChild->widget();
     537        /* Then the item itself: */
    533538        delete pChild;
     539    }
    534540}
    535541
     
    688694
    689695            /* Create widget layout: */
    690             m_pLayoutWidget = new QVBoxLayout(m_pToolsPane);
     696            m_pLayoutWidget = new QVBoxLayout;
    691697            AssertPtrReturnVoid(m_pLayoutWidget);
    692698            {
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