VirtualBox

Ignore:
Timestamp:
Jul 28, 2009 1:44:57 PM (15 years ago)
Author:
vboxsync
Message:

FE/Qt4: Fixing quite old crash happening if going f/s mode just when starting VM and exiting f/s mode later.

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxConsoleWnd.h

    r20200 r21842  
    3737#include <QDialog>
    3838#include <QMenu>
     39#include <QPointer>
    3940
    4041#ifdef VBOX_WITH_DEBUGGER_GUI
     
    377378    bool mIsWaitingModeResize : 1;
    378379    bool was_max : 1;
    379     QObjectList hidden_children;
     380    QList < QPointer <QWidget> > mHiddenChildren;
    380381    int console_style;
    381382    QPalette mErasePalette;
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleWnd.cpp

    r21777 r21842  
    22592259
    22602260    AssertReturn (console, false);
    2261     AssertReturn ((hidden_children.isEmpty() == aOn), false);
     2261    AssertReturn ((mHiddenChildren.empty() == aOn), false);
    22622262    AssertReturn ((aSeamless && mIsSeamless != aOn) ||
    22632263                  (!aSeamless && mIsFullscreen != aOn), false);
     
    23752375                {
    23762376                    w->hide();
    2377                     hidden_children.append (w);
     2377                    mHiddenChildren.append (w);
    23782378                }
    23792379            }
     
    24282428
    24292429        /* Show everything hidden when going fullscreen. */
    2430         foreach (QObject *obj, hidden_children)
    2431             ((QWidget *) obj)->show();
    2432         hidden_children.clear();
     2430        foreach (QPointer <QWidget> child, mHiddenChildren)
     2431            if (child) child->show();
     2432        mHiddenChildren.clear();
    24332433    }
    24342434
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