VirtualBox

Changeset 11776

Show
Ignore:
Timestamp:
08/28/08 19:35:51 (3 months ago)
Author:
vboxsync
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • 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())); 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy