VirtualBox

Ignore:
Timestamp:
Aug 6, 2013 1:58:47 PM (11 years ago)
Author:
vboxsync
Message:

FE/Qt: Settings dialog: New validation stuff: Step 1 (Initial implementation, #ifdef-ed).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/global/UIGlobalSettingsNetwork.cpp

    r47191 r47559  
    275275    m_pInterfacesTree->setCurrentItem(m_pInterfacesTree->topLevelItem(0));
    276276    sltUpdateCurrentItem();
     277
     278    /* Revalidate if possible: */
     279    if (m_pValidator)
     280        m_pValidator->revalidate();
    277281}
    278282
     
    368372}
    369373
    370 /* Validation assignments: */
     374#ifdef VBOX_WITH_NEW_SETTINGS_VALIDATOR
     375void UIGlobalSettingsNetwork::setValidator(UIPageValidator *pValidator)
     376#else /* VBOX_WITH_NEW_SETTINGS_VALIDATOR */
    371377void UIGlobalSettingsNetwork::setValidator(QIWidgetValidator *pValidator)
    372 {
     378#endif /* !VBOX_WITH_NEW_SETTINGS_VALIDATOR */
     379{
     380    /* Configure validation: */
    373381    m_pValidator = pValidator;
    374382}
     
    499507        pItem->updateInfo();
    500508        sltUpdateCurrentItem();
    501         m_pValidator->revalidate();
    502509        m_fChanged = true;
     510
     511        /* Revalidate if possible: */
     512        if (m_pValidator)
     513            m_pValidator->revalidate();
    503514    }
    504515}
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