VirtualBox

Changeset 90422 in vbox for trunk/src


Ignore:
Timestamp:
Jul 30, 2021 10:24:30 AM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:10067: A fix for r145855; We can determine initial location ourselves, no need to pass it.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumItem.cpp

    r90412 r90422  
    8181    /* Assign new medium location: */
    8282    UINotificationProgressMediumMove *pNotification = new UINotificationProgressMediumMove(comMedium,
    83                                                                                            location(),
    8483                                                                                           strFileName);
    8584    connect(pNotification, &UINotificationProgressMediumMove::sigProgressFinished,
  • trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationObjects.cpp

    r90412 r90422  
    145145
    146146UINotificationProgressMediumMove::UINotificationProgressMediumMove(const CMedium &comMedium,
    147                                                                    const QString &strFrom,
    148                                                                    const QString &strTo)
     147                                                                   const QString &strLocation)
    149148    : m_comMedium(comMedium)
    150     , m_strFrom(strFrom)
    151     , m_strTo(strTo)
     149    , m_strTo(strLocation)
    152150{
    153151}
     
    165163CProgress UINotificationProgressMediumMove::createProgress(COMResult &comResult)
    166164{
     165    /* Acquire location: */
     166    m_strFrom = m_comMedium.GetLocation();
     167    if (!m_comMedium.isOk())
     168    {
     169        /* Store COM result: */
     170        comResult = m_comMedium;
     171        /* Return progress-wrapper: */
     172        return CProgress();
     173    }
     174
    167175    /* Initialize progress-wrapper: */
    168176    CProgress comProgress = m_comMedium.MoveTo(m_strTo);
  • trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationObjects.h

    r90412 r90422  
    142142
    143143    /** Constructs medium move notification-progress.
    144       * @param  comMedium  Brings the medium being moved.
    145       * @param  strFrom    Brings the initial location.
    146       * @param  strTo      Brings the final location. */
     144      * @param  comMedium    Brings the medium being moved.
     145      * @param  strLocation  Brings the desired location. */
    147146    UINotificationProgressMediumMove(const CMedium &comMedium,
    148                                      const QString &strFrom,
    149                                      const QString &strTo);
     147                                     const QString &strLocation);
    150148
    151149protected:
     
    164162    /** Holds the initial location. */
    165163    QString  m_strFrom;
    166     /** Holds the final location. */
     164    /** Holds the desired location. */
    167165    QString  m_strTo;
    168166};
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