VirtualBox

Changeset 97595 in vbox


Ignore:
Timestamp:
Nov 17, 2022 4:07:01 PM (2 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10067: Forgot to handle UIProgressTask canceling in UINotificationProgress.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
3 edited

Legend:

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

    r96407 r97595  
    108108{
    109109    if (m_pProgressObject)
     110    {
    110111        m_pProgressObject->cancel();
     112        /* Notify external listeners: */
     113        emit sigProgressCanceled();
     114    }
    111115}
    112116
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIProgressTask.h

    r96407 r97595  
    5959      * @param  uPercent  Brings the progress percentage. */
    6060    void sigProgressChange(ulong uPercent);
     61    /** Notifies listeners about progress was canceled. */
     62    void sigProgressCanceled();
    6163    /** Notifies listeners about progress has finished. */
    6264    void sigProgressFinished();
  • trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationObject.cpp

    r96407 r97595  
    182182        connect(m_pTask, &UIProgressTask::sigProgressChange,
    183183                this, &UINotificationProgress::sltHandleProgressChange);
     184        connect(m_pTask, &UIProgressTask::sigProgressCanceled,
     185                this, &UINotificationProgress::sigProgressFinished);
    184186        connect(m_pTask, &UIProgressTask::sigProgressFinished,
    185187                this, &UINotificationProgress::sltHandleProgressFinished);
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