VirtualBox

Changeset 45277 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 2, 2013 8:36:34 AM (12 years ago)
Author:
vboxsync
Message:

FE/Qt: Message-center: Make sure progress-dialog always have parent if possible.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp

    r45275 r45277  
    217217
    218218    /* Create progress-dialog: */
    219     QWidget *pDlgParent = mwManager().realParentWindow(pParent);
     219    QWidget *pDlgParent = mwManager().realParentWindow(pParent ? pParent : mainWindowShown());
    220220    QPointer<UIProgressDialog> pProgressDlg = new UIProgressDialog(progress, strTitle, pPixmap, cMinDuration, pDlgParent);
    221221    mwManager().registerNewParent(pProgressDlg, pDlgParent);
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