- Timestamp:
- Jul 30, 2021 10:24:30 AM (4 years ago)
- 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 81 81 /* Assign new medium location: */ 82 82 UINotificationProgressMediumMove *pNotification = new UINotificationProgressMediumMove(comMedium, 83 location(),84 83 strFileName); 85 84 connect(pNotification, &UINotificationProgressMediumMove::sigProgressFinished, -
trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationObjects.cpp
r90412 r90422 145 145 146 146 UINotificationProgressMediumMove::UINotificationProgressMediumMove(const CMedium &comMedium, 147 const QString &strFrom, 148 const QString &strTo) 147 const QString &strLocation) 149 148 : m_comMedium(comMedium) 150 , m_strFrom(strFrom) 151 , m_strTo(strTo) 149 , m_strTo(strLocation) 152 150 { 153 151 } … … 165 163 CProgress UINotificationProgressMediumMove::createProgress(COMResult &comResult) 166 164 { 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 167 175 /* Initialize progress-wrapper: */ 168 176 CProgress comProgress = m_comMedium.MoveTo(m_strTo); -
trunk/src/VBox/Frontends/VirtualBox/src/notificationcenter/UINotificationObjects.h
r90412 r90422 142 142 143 143 /** 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. */ 147 146 UINotificationProgressMediumMove(const CMedium &comMedium, 148 const QString &strFrom, 149 const QString &strTo); 147 const QString &strLocation); 150 148 151 149 protected: … … 164 162 /** Holds the initial location. */ 165 163 QString m_strFrom; 166 /** Holds the finallocation. */164 /** Holds the desired location. */ 167 165 QString m_strTo; 168 166 };
Note:
See TracChangeset
for help on using the changeset viewer.