- Timestamp:
- Nov 23, 2023 4:34:33 PM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/UIAdvancedSettingsDialog.cpp
r102262 r102279 614 614 , m_fSerializationClean(false) 615 615 , m_fClosed(false) 616 , m_iPageId( 0)616 , m_iPageId(MachineSettingsPageType_Invalid) 617 617 , m_pStatusBar(0) 618 618 , m_pProcessBar(0) … … 669 669 iPosition -= iT; 670 670 /* And actual page position according to parent: */ 671 const QPoint pnt = m_frames.value(m_iPageId)->pos(); 672 iPosition += pnt.y(); 671 UISettingsPageFrame *pFrame = m_frames.value(m_iPageId, 0); 672 AssertPtr(pFrame); 673 if (pFrame) 674 { 675 const QPoint pnt = pFrame->pos(); 676 iPosition += pnt.y(); 677 } 673 678 /* Make sure corresponding page is visible: */ 674 679 m_pScrollArea->requestVerticalScrollBarPosition(iPosition); … … 949 954 int iParentId /* = -1 */) 950 955 { 956 /* Init m_iPageId if we haven't yet: */ 957 if (m_iPageId == MachineSettingsPageType_Invalid) 958 m_iPageId = cId; 959 951 960 /* Add new selector item: */ 952 961 if (m_pSelector->addItem(strBigIcon, strMediumIcon, strSmallIcon,
Note:
See TracChangeset
for help on using the changeset viewer.