VirtualBox

Changeset 68155 in vbox for trunk


Ignore:
Timestamp:
Jul 28, 2017 1:07:39 PM (7 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:8938: Fixing crash revealed by the Qt4=>Qt5 migration process (s.a. r117115).

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QITableView.cpp

    r68079 r68155  
    409409    : QTableView(pParent)
    410410{
    411     /* Prepare all: */
     411    /* Prepare: */
    412412    prepare();
     413}
     414
     415QITableView::~QITableView()
     416{
     417    /* Cleanup: */
     418    cleanup();
    413419}
    414420
     
    476482}
    477483
     484void QITableView::cleanup()
     485{
     486    /* Disconnect all the editors prematurelly: */
     487    foreach (QObject *pEditor, m_editors.values())
     488        disconnect(pEditor, 0, this, 0);
     489}
     490
  • trunk/src/VBox/Frontends/VirtualBox/src/extensions/QITableView.h

    r64479 r68155  
    9898    /** Constructs table-view passing @a pParent to the base-class. */
    9999    QITableView(QWidget *pParent = 0);
     100    /** Destructs table-view. */
     101    virtual ~QITableView() /* override */;
    100102
    101103    /** Returns the number of children. */
     
    123125    /** Prepares all. */
    124126    void prepare();
     127    /** Cleanups all. */
     128    void cleanup();
    125129
    126130    /** Holds the map of editors stored for passed indexes. */
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