VirtualBox

Changeset 91844 in vbox


Ignore:
Timestamp:
Oct 19, 2021 5:17:21 PM (3 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10067: UINotificationCenter: Update for handleNow() functionality; Start loop only if progress isn't finished yet, stop loop only if it exists.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationCenter.cpp

    r91755 r91844  
    241241    /* Is progress still valid? */
    242242    if (guardProgress.isNull())
     243        return;
     244    /* Is progress still running? */
     245    if (guardProgress->isFinished())
    243246        return;
    244247
     
    398401void UINotificationCenter::sltHandleProgressFinished()
    399402{
    400     /* Make sure event-loop is running: */
    401     AssertPtrReturnVoid(m_pEventLoop.data());
    402 
    403     /* Break the loop: */
    404     m_pEventLoop->exit();
     403    /* Break the loop if exists: */
     404    if (m_pEventLoop)
     405        m_pEventLoop->exit();
    405406}
    406407
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