VirtualBox

Ignore:
Timestamp:
Mar 25, 2015 5:42:30 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
99199
Message:

FE/Qt: Machine settings Serializer: Cleanup rework to prepare to the encryption settings integration (step 10): Register the save-settings progress-dialog as the temporary parent for all the sub-dialogs.

File:
1 edited

Legend:

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

    r54932 r54951  
    3535# include "QIWidgetValidator.h"
    3636# include "VBoxSettingsSelector.h"
     37# include "UIModalWindowManager.h"
    3738# include "UISettingsSerializer.h"
    3839# include "UISettingsPage.h"
     
    300301
    301302    /* Create settings saver: */
    302     m_pSerializeProgress = new UISettingsSerializerProgress(this, UISettingsSerializer::Save,
     303    QWidget *pDlgParent = windowManager().realParentWindow(window());
     304    m_pSerializeProgress = new UISettingsSerializerProgress(pDlgParent, UISettingsSerializer::Save,
    303305                                                            data, m_pSelector->settingPages());
    304306    AssertPtrReturnVoid(m_pSerializeProgress);
    305307    {
     308        /* Make setting saver the temporary parent for all the sub-dialogs: */
     309        windowManager().registerNewParent(m_pSerializeProgress, pDlgParent);
    306310        /* Start settings saver: */
    307311        m_pSerializeProgress->exec();
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