VirtualBox

Changeset 93949 in vbox


Ignore:
Timestamp:
Feb 25, 2022 1:59:59 PM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: Fixed incorrect NULL m_pAddressBar check in UIHelpBrowserTab::sltAddressBarIndexChanged found by gcc 11.2.1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/helpbrowser/UIHelpBrowserWidget.cpp

    r93115 r93949  
    864864void UIHelpBrowserTab::sltAddressBarIndexChanged(int iIndex)
    865865{
    866     if (!m_pAddressBar && iIndex >= m_pAddressBar->count())
     866    if (!m_pAddressBar || iIndex >= m_pAddressBar->count())
    867867        return;
    868868    int iHistoryIndex = m_pAddressBar->itemData(iIndex).toInt();
     
    870870    if (iHistoryIndex == 0)
    871871        return;
    872     else if (iHistoryIndex > 0)
     872    if (iHistoryIndex > 0)
    873873        for (int i = 0; i < iHistoryIndex; ++i)
    874874            m_pContentViewer->forward();
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