Changeset 78298 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Apr 25, 2019 5:09:37 PM (6 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src/medium
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumEnumerator.cpp
r78297 r78298 20 20 21 21 /* GUI includes: */ 22 #include "VBoxGlobal.h" 22 23 #include "UIMediumEnumerator.h" 23 24 #include "UIThreadPool.h" 24 25 #include "UIVirtualBoxEventHandler.h" 25 #include "VBoxGlobal.h"26 26 27 27 /* COM includes: */ 28 28 #include "COMEnums.h" 29 29 #include "CMachine.h" 30 #include "CMediumAttachment.h" 30 31 #include "CSnapshot.h" 31 #include "CMediumAttachment.h"32 32 33 33 … … 202 202 } 203 203 204 void UIMediumEnumerator::retranslateUi() 205 { 206 /* Translating NULL UIMedium by recreating it: */ 207 if (m_media.contains(UIMedium::nullID())) 208 m_media[UIMedium::nullID()] = UIMedium(); 209 } 210 204 211 void UIMediumEnumerator::sltHandleMachineUpdate(const QUuid &uMachineID) 205 212 { … … 373 380 emit sigMediumEnumerationFinished(); 374 381 } 375 }376 377 void UIMediumEnumerator::retranslateUi()378 {379 /* Translating NULL uimedium by recreating it: */380 if (m_media.contains(UIMedium::nullID()))381 m_media[UIMedium::nullID()] = UIMedium();382 382 } 383 383 -
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMediumEnumerator.h
r78297 r78298 27 27 28 28 /* GUI includes: */ 29 #include "QIWithRetranslateUI.h" 29 30 #include "UILibraryDefs.h" 30 31 #include "UIMedium.h" 31 #include "QIWithRetranslateUI.h"32 32 33 33 /* Forward declarations: */ 34 class UITask; 34 35 class UIThreadPool; 35 class UITask;36 36 37 37 /* Typedefs: */ … … 71 71 void refreshMedia(); 72 72 73 protected: 74 75 /** Handles translation event. */ 76 virtual void retranslateUi() /* override */; 77 73 78 private slots: 74 79 … … 84 89 85 90 private: 86 87 /** Handles translation event. */88 virtual void retranslateUi() /* override */;89 91 90 92 /* Helpers: Medium-enumeration stuff: */
Note:
See TracChangeset
for help on using the changeset viewer.