VirtualBox

Ignore:
Timestamp:
Jul 7, 2019 3:59:20 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
131869
Message:

FE/Qt: bugref:9495: New Cloud VM wizard: 1st basic and expert pages: A bit of cleanup for init procedure.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageBasic1.cpp

    r79575 r79579  
    408408{
    409409    const int iCurrentIndex = m_pDestinationComboBox->currentIndex();
    410     const QString strCurrentToolTip = m_pDestinationComboBox->itemData(iCurrentIndex, Qt::ToolTipRole).toString();
    411     AssertMsg(!strCurrentToolTip.isEmpty(), ("Data not found!"));
    412     m_pDestinationComboBox->setToolTip(strCurrentToolTip);
     410    if (iCurrentIndex != -1)
     411    {
     412        const QString strCurrentToolTip = m_pDestinationComboBox->itemData(iCurrentIndex, Qt::ToolTipRole).toString();
     413        AssertMsg(!strCurrentToolTip.isEmpty(), ("Data not found!"));
     414        m_pDestinationComboBox->setToolTip(strCurrentToolTip);
     415    }
    413416}
    414417
     
    660663        }
    661664    }
    662 
    663     /* Populate destinations: */
    664     populateDestinations();
    665665
    666666    /* Setup connections: */
     
    748748    if (!m_fPolished)
    749749    {
     750        /* Populate destinations: */
     751        populateDestinations();
     752        /* Choose one of them, asynchronously: */
    750753        QMetaObject::invokeMethod(this, "sltHandleDestinationChange", Qt::QueuedConnection);
    751754        m_fPolished = true;
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newcloudvm/UIWizardNewCloudVMPageExpert.cpp

    r79575 r79579  
    161161    }
    162162
    163     /* Populate destinations: */
    164     populateDestinations();
    165 
    166163    /* Setup connections: */
    167164    if (gpManager)
     
    224221    if (!m_fPolished)
    225222    {
     223        /* Populate destinations: */
     224        populateDestinations();
     225        /* Choose one of them, asynchronously: */
    226226        QMetaObject::invokeMethod(this, "sltHandleDestinationChange", Qt::QueuedConnection);
    227227        m_fPolished = true;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette