VirtualBox

Changeset 12124

Show
Ignore:
Timestamp:
09/05/08 13:39:41 (3 months ago)
Author:
vboxsync
Message:

FE/Qt4: Process events *must* be called after any usage of the editor var,
cause this call close the editor which leads in an invalid ptr.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/VBox/Frontends/VirtualBox4/src/VBoxVMSettingsHD.cpp

    r12036 r12124  
    676676        editor->tryToChooseUniqueVdi (vdis); 
    677677 
     678        /* Ask the user for method to add new vdi */ 
     679        int result = mModel->rowCount() - 1 > editor->count() ? 
     680            vboxProblem().confirmRunNewHDWzdOrVDM (this) : 
     681            QIMessageBox::Cancel; 
     682 
    678683        /* Move the focus to the other than attachment table location. 
    679684         * This will close the temporary editor of this table to prevent 
     
    682687        qApp->processEvents(); 
    683688 
    684         /* Ask the user for method to add new vdi */ 
    685         int result = mModel->rowCount() - 1 > editor->count() ? 
    686             vboxProblem().confirmRunNewHDWzdOrVDM (this) : 
    687             QIMessageBox::Cancel; 
    688689        if (result == QIMessageBox::Yes) 
    689690        { 

© 2008 Sun Microsystems, Inc.
ContactPrivacy policy