VirtualBox

Ignore:
Timestamp:
Jul 6, 2018 11:51:54 AM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
123486
Message:

FE/Qt: Some pointer checks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumSelector.cpp

    r72933 r72934  
    708708void UIMediumSelector::performMediumSearch()
    709709{
    710     if (!m_pSearchWidget)
     710    if (!m_pSearchWidget || !m_pTreeWidget)
    711711        return;
    712712    /* Unmark all tree items to remove the highltights: */
     
    714714    {
    715715        for (int j = 0; j < m_pTreeWidget->columnCount(); ++j)
    716             m_mediumItemList[i]->setData(j, Qt::ForegroundRole, m_defaultItemForeground);
     716        {
     717            if (m_mediumItemList[i])
     718                m_mediumItemList[i]->setData(j, Qt::ForegroundRole, m_defaultItemForeground);
     719        }
    717720    }
    718721
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