Changeset 45082 in vbox
- Timestamp:
- Mar 19, 2013 8:59:32 AM (12 years ago)
- svn:sync-xref-src-repo-rev:
- 84365
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageBasic1.cpp
r45081 r45082 78 78 /* Make sure appliance file has allowed extension and exists: */ 79 79 return VBoxGlobal::hasAllowedExtension(m_pFileSelector->path().toLower(), OVFFileExts) && 80 QFile Info(m_pFileSelector->path()).exists();80 QFile::exists(m_pFileSelector->path()); 81 81 } 82 82 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageExpert.cpp
r45081 r45082 67 67 { 68 68 /* Check if set file contains valid appliance: */ 69 if (m_pApplianceWidget->setFile(m_pFileSelector->path())) 69 if (QFile::exists(m_pFileSelector->path()) && 70 m_pApplianceWidget->setFile(m_pFileSelector->path())) 70 71 { 71 72 /* Reset the modified bit if file was correctly set: */ … … 95 96 /* Make sure appliance file has allowed extension and exists and appliance widget is valid: */ 96 97 return VBoxGlobal::hasAllowedExtension(m_pFileSelector->path().toLower(), OVFFileExts) && 97 QFile Info(m_pFileSelector->path()).exists() &&98 QFile::exists(m_pFileSelector->path()) && 98 99 m_pApplianceWidget->isValid(); 99 100 }
Note:
See TracChangeset
for help on using the changeset viewer.