VirtualBox

Changeset 82227 in vbox


Ignore:
Timestamp:
Nov 26, 2019 6:35:15 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
135042
Message:

VBox/Debugger: Do not delete debugger windows on close ourselves, we have Qt to do that.

Location:
trunk/src/VBox/Debugger
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Debugger/VBoxDbgConsole.cpp

    r77412 r82227  
    490490    m_fTerminate(false), m_fThreadTerminated(false)
    491491{
     492    /* Delete dialog on close: */
     493    setAttribute(Qt::WA_DeleteOnClose);
     494
    492495    /*
    493496     * Create the output text box.
     
    994997{
    995998    if (m_fThreadTerminated)
    996     {
    997999        a_pCloseEvt->accept();
    998         delete this;
    999     }
    10001000}
    10011001
  • trunk/src/VBox/Debugger/VBoxDbgStatsQt.cpp

    r77412 r82227  
    30433043    , m_PatStr(pszPat), m_pPatCB(NULL), m_uRefreshRate(0), m_pTimer(NULL), m_pView(NULL)
    30443044{
     3045    /* Delete dialog on close: */
     3046    setAttribute(Qt::WA_DeleteOnClose);
     3047
    30453048    /*
    30463049     * On top, a horizontal box with the pattern field, buttons and refresh interval.
     
    31493152{
    31503153    a_pCloseEvt->accept();
    3151     delete this; /** @todo This is wrong! We get more events after this one and end up using memory after freeing it in vPolishSizeAndPos().  (Qt3 holdover?) */
    31523154}
    31533155
Note: See TracChangeset for help on using the changeset viewer.

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