VirtualBox

Changeset 24735 in vbox for trunk


Ignore:
Timestamp:
Nov 17, 2009 7:26:23 PM (15 years ago)
Author:
vboxsync
Message:

FE/Qt4: Copy binary data during snapshot thumbnail creation, seems Qt doesn't do implicit deep copy for QImage.

File:
1 edited

Legend:

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

    r24732 r24735  
    7070    ULONG width = 0, height = 0;
    7171    QVector <BYTE> data = machine.ReadSavedThumbnailToArray (true, width, height);
    72     mThumbnail = data.size() != 0 ? QPixmap::fromImage (QImage (data.data(), width, height, QImage::Format_RGB32)) : QPixmap();
     72    mThumbnail = data.size() != 0 ? QPixmap::fromImage (QImage (data.data(), width, height, QImage::Format_RGB32).copy()) : QPixmap();
    7373    QGridLayout *lt = qobject_cast <QGridLayout*> (layout());
    7474    Assert (lt);
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