Changeset 91578 in vbox for trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageBasic1.cpp
- Timestamp:
- Oct 5, 2021 5:24:33 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageBasic1.cpp
r91564 r91578 677 677 else 678 678 { 679 /* Get import appliance widget: */680 ImportAppliancePointer pImportApplianceWidget = field("applianceWidget").value<ImportAppliancePointer>();681 AssertMsg(!pImportApplianceWidget.isNull(), ("Appliance Widget is not set!\n"));682 683 679 /* If file name was changed: */ 684 680 if (m_pFileSelector->isModified()) 685 681 { 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())) 688 685 return false; 689 686 /* Reset the modified bit afterwards: */ … … 692 689 693 690 /* If we have a valid ovf proceed to the appliance settings page: */ 694 return pImportApplianceWidget->isValid();691 return qobject_cast<UIWizardImportApp*>(wizard())->isValid(); 695 692 } 696 693 }
Note:
See TracChangeset
for help on using the changeset viewer.