VirtualBox

Changeset 88208 in vbox


Ignore:
Timestamp:
Mar 19, 2021 5:41:46 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
143373
Message:

FE/Qt: bugref:8694: UIMessageCenter: Fixing annoying assertion introduced in r143243 in case when there is no top-level windows at all, like when starting VM in separate mode.

File:
1 edited

Legend:

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

    r88100 r88208  
    370370    /* Gather suitable dialog parent: */
    371371    QWidget *pDlgParent = windowManager().realParentWindow(pParent ? pParent : windowManager().mainWindowShown());
    372     AssertPtrReturn(pDlgParent, fRc);
    373372
    374373    /* Prepare pixmap: */
    375374    QPixmap pixmap;
    376375    if (!strImage.isEmpty())
    377         pixmap = UIIconPool::iconSet(strImage).pixmap(pDlgParent->windowHandle(), QSize(90, 90));
     376        pixmap = pDlgParent
     377               ? UIIconPool::iconSet(strImage).pixmap(pDlgParent->windowHandle(), QSize(90, 90))
     378               : UIIconPool::iconSet(strImage).pixmap(QSize(90, 90));
    378379
    379380    /* Create progress-dialog: */
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