VirtualBox

Ignore:
Timestamp:
Nov 11, 2009 3:24:45 PM (15 years ago)
Author:
vboxsync
Message:

FE/Qt4: 4149: GUI SEGFAULT in snapshot widget - should be fixed.

File:
1 edited

Legend:

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

    r24514 r24593  
    4646        , mSnapshot (aSnapshot)
    4747    {
    48         recache();
    4948    }
    5049
     
    5453        , mSnapshot (aSnapshot)
    5554    {
    56         recache();
    5755    }
    5856
     
    6361    {
    6462        updateCurrentState (mMachine.GetState());
    65         recache();
    6663    }
    6764
     
    7269    {
    7370        updateCurrentState (mMachine.GetState());
    74         recache();
    7571    }
    7672
     
    156152    void adjustText()
    157153    {
     154        if (!treeWidget()) return; /* only for initialised items */
    158155        QFontMetrics metrics (font (0));
    159156        int hei0 = (metrics.height() > 16 ?
     
    645642
    646643        /* Add the "current state" item */
    647         new SnapshotWgtItem (mCurSnapshotItem, mMachine);
     644        SnapshotWgtItem *csi = new SnapshotWgtItem (mCurSnapshotItem, mMachine);
     645        csi->recache();
    648646
    649647        SnapshotWgtItem *cur = findItem (selectedItem);
     
    663661        /* Add the "current state" item */
    664662        SnapshotWgtItem *csi = new SnapshotWgtItem (mTreeWidget, mMachine);
     663        csi->recache();
    665664
    666665        mTreeWidget->setCurrentItem (csi);
     
    698697    SnapshotWgtItem *item = aItem ? new SnapshotWgtItem (aItem, aSnapshot) :
    699698                                    new SnapshotWgtItem (mTreeWidget, aSnapshot);
     699    item->recache();
    700700
    701701    if (mMachine.GetCurrentSnapshot().GetId() == aSnapshot.GetId())
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