VirtualBox

Ignore:
Timestamp:
Jun 30, 2021 8:58:25 AM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
145426
Message:

FE/Qt: bugref:9996: UINativeWizard: Init page just once, unless it was exited back from.

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

Legend:

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

    r89960 r89967  
    9292    , m_enmMode(enmMode == WizardMode_Auto ? gEDataManager->modeForWizardType(m_enmType) : enmMode)
    9393    , m_strHelpHashtag(strHelpHashtag)
     94    , m_iLastIndex(-1)
    9495    , m_pLabelPixmap(0)
    9596#ifdef VBOX_WS_MAC
     
    228229    m_pLabelPageTitle->setText(pPage->title());
    229230#endif
    230     pPage->initializePage();
     231    if (iIndex > m_iLastIndex)
     232        pPage->initializePage();
     233
     234    /* Update last index: */
     235    m_iLastIndex = iIndex;
    231236}
    232237
     
    461466    }
    462467    m_pWidgetStack->blockSignals(false);
     468
     469    /* Update last index: */
     470    m_iLastIndex = -1;
    463471}
    464472
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/UINativeWizard.h

    r89960 r89967  
    159159    /** Holds the pixmap name. */
    160160    QString     m_strPixmapName;
     161    /** Holds the last entered page index. */
     162    int         m_iLastIndex;
    161163
    162164    /** Holds the pixmap label instance. */
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