VirtualBox

Ignore:
Timestamp:
Oct 5, 2021 5:24:33 PM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9996: UIWizardImportApp: Moving appliance related code from UIApplianceImportEditorWidget to UIWizardImportApp itself where it belongs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageBasic1.cpp

    r91564 r91578  
    677677    else
    678678    {
    679         /* Get import appliance widget: */
    680         ImportAppliancePointer pImportApplianceWidget = field("applianceWidget").value<ImportAppliancePointer>();
    681         AssertMsg(!pImportApplianceWidget.isNull(), ("Appliance Widget is not set!\n"));
    682 
    683679        /* If file name was changed: */
    684680        if (m_pFileSelector->isModified())
    685681        {
    686             /* Check if set file contains valid appliance: */
    687             if (!pImportApplianceWidget->setFile(m_pFileSelector->path()))
     682            /* Check if specified file contains valid appliance: */
     683            if (   !QFile::exists(m_pFileSelector->path())
     684                || !qobject_cast<UIWizardImportApp*>(wizard())->setFile(m_pFileSelector->path()))
    688685                return false;
    689686            /* Reset the modified bit afterwards: */
     
    692689
    693690        /* If we have a valid ovf proceed to the appliance settings page: */
    694         return pImportApplianceWidget->isValid();
     691        return qobject_cast<UIWizardImportApp*>(wizard())->isValid();
    695692    }
    696693}
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