Changeset 48089 in vbox for trunk/src/VBox
- Timestamp:
- Aug 27, 2013 4:00:23 PM (11 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h
r47998 r48089 254 254 bool findMedium (const CMedium &, UIMedium &) const; 255 255 UIMedium findMedium (const QString &aMediumId) const; 256 257 /** Compact version of #findMediumTo(). Asserts if not found. */258 UIMedium getMedium (const CMedium &aObj) const259 {260 UIMedium medium;261 if (!findMedium (aObj, medium))262 AssertFailed();263 return medium;264 }265 256 266 257 QString openMediumWithFileOpenDialog(UIMediumType mediumType, QWidget *pParent = 0, -
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMedium.cpp
r48061 r48089 42 42 UIMedium& UIMedium::operator=(const UIMedium &other) 43 43 { 44 m_fHidden = other.m_fHidden;45 m_fAttachedToHiddenMachinesOnly = other.m_fAttachedToHiddenMachinesOnly;46 47 44 m_medium = other.medium(); 48 45 m_type = other.type(); … … 66 63 m_strToolTip = other.tip(); 67 64 65 m_fHidden = other.m_fHidden; 66 m_fAttachedToHiddenMachinesOnly = other.m_fAttachedToHiddenMachinesOnly; 68 67 m_fReadOnly = other.isReadOnly(); 69 68 m_fUsedInSnapshots = other.isUsedInSnapshots(); … … 125 124 void UIMedium::refresh() 126 125 { 127 /* We assume these flags are 'false' by default: */126 /* Flags are 'false' by default: */ 128 127 m_fHidden = false; 129 128 m_fAttachedToHiddenMachinesOnly = false; 129 m_fReadOnly = false; 130 m_fUsedInSnapshots = false; 131 m_fHostDrive = false; 130 132 131 133 /* Detect basic parameters */ -
trunk/src/VBox/Frontends/VirtualBox/src/medium/UIMedium.h
r48061 r48089 89 89 : m_type(UIMediumType_Invalid) 90 90 , m_state(KMediumState_NotCreated) 91 , m_fReadOnly(false)92 , m_fUsedInSnapshots(false)93 91 , m_pParent(0) { refresh(); } 94 92 … … 108 106 , m_type(type) 109 107 , m_state(KMediumState_NotCreated) 110 , m_fReadOnly(false)111 , m_fUsedInSnapshots(false)112 108 , m_pParent(pParent) { refresh(); } 113 109 … … 121 117 , m_type(type) 122 118 , m_state(state) 123 , m_fReadOnly(false)124 , m_fUsedInSnapshots(false)125 119 , m_pParent(0) { refresh(); } 126 120 … … 267 261 QString m_strToolTip; 268 262 263 bool m_fHidden : 1; 264 bool m_fAttachedToHiddenMachinesOnly : 1; 269 265 bool m_fReadOnly : 1; 270 266 bool m_fUsedInSnapshots : 1; 271 267 bool m_fHostDrive : 1; 272 bool m_fHidden : 1;273 bool m_fAttachedToHiddenMachinesOnly : 1;274 268 275 269 QList<QString> m_curStateMachineIds;
Note:
See TracChangeset
for help on using the changeset viewer.