VirtualBox

Changeset 60338 in vbox for trunk


Ignore:
Timestamp:
Apr 5, 2016 3:14:08 PM (9 years ago)
Author:
vboxsync
Message:

Build fix.

File:
1 edited

Legend:

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

    r60329 r60338  
    174174    CAppliance *pAppliance = m_pApplianceWidget->appliance();
    175175    CCertificate certificate = pAppliance->GetCertificate();
    176     /* Check whether certificate exists and verified: */
    177     if (certificate.GetPresence())
     176    if (!certificate.isNull())
    178177    {
    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());
    182184            {
    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;
    197193            }
    198194        }
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