VirtualBox

Changeset 11776 in vbox


Ignore:
Timestamp:
Aug 28, 2008 5:35:51 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
35558
Message:

Fe/Qt4: Try to fix rare segfault crash in Shared Folders widget caused by calling methods of non-initilized string container.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxVMSettingsSF.cpp

    r11530 r11776  
    235235    connect (mTreeView, SIGNAL (customContextMenuRequested (const QPoint &)),
    236236             this, SLOT (showContextMenu (const QPoint &)));
    237     connect (mTreeView->header(), SIGNAL (sectionResized (int, int, int)),
    238              this, SLOT (adjustFields()));
    239237
    240238    /* Set mTreeView as the focus proxy for the mGbSharedFolders */
     
    538536    QWidget::showEvent (aEvent);
    539537
     538    /* Connect header-resize signal just before widget is shown
     539     * after all the items properly loaded and initialized. */
     540    connect (mTreeView->header(), SIGNAL (sectionResized (int, int, int)),
     541             this, SLOT (adjustFields()));
     542
    540543    /* Adjusting size after all pending show events are processed. */
    541544    QTimer::singleShot (0, this, SLOT (adjustList()));
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