VirtualBox

Changeset 100924 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 21, 2023 3:04:36 PM (19 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
158861
Message:

FE/Qt: UISettingsDialog: A bit of stuff related to prepare/cleanup cascade forgotten in r158860.

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

Legend:

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

    r100923 r100924  
    8888UISettingsDialog::~UISettingsDialog()
    8989{
    90     /* Delete serializer if exists: */
    91     if (serializeProcess())
    92     {
    93         delete m_pSerializeProcess;
    94         m_pSerializeProcess = 0;
    95     }
    96 
    97     /* Recall popup-pane if any: */
    98     popupCenter().recall(m_pStack, "SettingsDialogWarning");
    99 
    100     /* Delete selector early! */
    101     delete m_pSelector;
     90    cleanup();
    10291}
    10392
     
    651640        QFont fnt;
    652641        fnt.setFamily(QStringLiteral("Sans Serif"));
    653 //        fnt.setPointSize(11);
    654642        fnt.setPointSize(fnt.pointSize() + 2);
    655643        fnt.setBold(true);
     
    746734}
    747735
     736void UISettingsDialog::cleanup()
     737{
     738    /* Delete serializer if exists: */
     739    if (serializeProcess())
     740    {
     741        delete m_pSerializeProcess;
     742        m_pSerializeProcess = 0;
     743    }
     744
     745    /* Recall popup-pane if any: */
     746    popupCenter().recall(m_pStack, "SettingsDialogWarning");
     747
     748    /* Delete selector early! */
     749    delete m_pSelector;
     750}
     751
    748752void UISettingsDialog::assignValidator(UISettingsPage *pPage)
    749753{
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/UISettingsDialog.h

    r100923 r100924  
    198198        /** Prepare button-box. */
    199199        void prepareButtonBox();
     200
     201        /** Cleanups all. */
     202        void cleanup();
    200203    /** @} */
    201204
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