- Timestamp:
- Apr 5, 2016 3:14:08 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/wizards/importappliance/UIWizardImportAppPageBasic2.cpp
r60329 r60338 174 174 CAppliance *pAppliance = m_pApplianceWidget->appliance(); 175 175 CCertificate certificate = pAppliance->GetCertificate(); 176 /* Check whether certificate exists and verified: */ 177 if (certificate.GetPresence()) 176 if (!certificate.isNull()) 178 177 { 179 if(certificate.GetVerified()) 180 { 181 if(!certificate.GetTrusted() || certificate.GetSelfSigned()) 178 if(!certificate.GetTrusted() || certificate.GetSelfSigned()) 179 { 180 /* Create certificate viewer to notify user about it is not verified: */ 181 QPointer<UIApplianceCertificateViewer> pDialog = 182 new UIApplianceCertificateViewer(this, certificate); 183 AssertPtrReturnVoid(pDialog.data()); 182 184 { 183 /* Create certificate viewer to notify user about it is not verified: */ 184 QPointer<UIApplianceCertificateViewer> pDialog = 185 new UIApplianceCertificateViewer(this, certificate); 186 AssertPtrReturnVoid(pDialog.data()); 187 { 188 /* Show viewer in modal mode: */ 189 pDialog->exec(); 190 /* Leave if destroyed prematurely: */ 191 if (!pDialog) 192 return; 193 /* Delete viewer finally: */ 194 delete pDialog; 195 pDialog = 0; 196 } 185 /* Show viewer in modal mode: */ 186 pDialog->exec(); 187 /* Leave if destroyed prematurely: */ 188 if (!pDialog) 189 return; 190 /* Delete viewer finally: */ 191 delete pDialog; 192 pDialog = 0; 197 193 } 198 194 }
Note:
See TracChangeset
for help on using the changeset viewer.