VirtualBox

Changeset 12124 in vbox


Ignore:
Timestamp:
Sep 5, 2008 11:39:41 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
36073
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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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        {
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