Changeset 1242 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Mar 5, 2007 7:16:00 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxSelectorWnd.cpp
r1236 r1242 873 873 AssertMsgReturn (item, ("Item must be always selected here"), (void) 0); 874 874 875 refreshVMItem (item->id(), true, true, true); 875 refreshVMItem (item->id(), 876 true /* update details */, 877 true /* update snapshot */, 878 true /* update description */); 876 879 } 877 880 … … 1068 1071 { 1069 1072 /* update the snapshots tab name */ 1070 QString shotName = tr ("&Snapshots");1071 ULONG shotCount = item->snapshotCount();1072 if ( shotCount)1073 shotName += QString (" (%1)").arg (shotCount);1074 vmTabWidget->changeTab (vmSnapshotsWgt, shotName);1073 QString name = tr ("&Snapshots"); 1074 ULONG count = item->snapshotCount(); 1075 if (count) 1076 name += QString (" (%1)").arg (count); 1077 vmTabWidget->changeTab (vmSnapshotsWgt, name); 1075 1078 /* refresh snapshots widget */ 1076 1079 vmSnapshotsWgt->setMachine (m); … … 1078 1081 if (aRefreshDescription) 1079 1082 { 1083 /* update the description tab name */ 1084 QString name = m.GetDescription().isEmpty() ? 1085 tr ("Des&cription") : tr ("Des&cription (*)"); 1086 vmTabWidget->changeTab (vmDescriptionPage, name); 1087 /* refresh description widget */ 1080 1088 vmDescriptionPage->setMachine (m); 1081 1089 } … … 1182 1190 void VBoxSelectorWnd::machineStateChanged (const VBoxMachineStateChangeEvent &e) 1183 1191 { 1184 refreshVMItem (e.id, false, false, false); 1192 refreshVMItem (e.id, 1193 false /* update details */, 1194 false /* update snapshot */, 1195 false /* update description */); 1185 1196 } 1186 1197 1187 1198 void VBoxSelectorWnd::machineDataChanged (const VBoxMachineDataChangeEvent &e) 1188 1199 { 1189 refreshVMItem (e.id, true, false, true); 1200 refreshVMItem (e.id, 1201 true /* update details */, 1202 false /* update snapshot */, 1203 true /* update description */); 1190 1204 } 1191 1205 … … 1216 1230 void VBoxSelectorWnd::sessionStateChanged (const VBoxSessionStateChangeEvent &e) 1217 1231 { 1218 refreshVMItem (e.id, true, false, false); 1232 refreshVMItem (e.id, 1233 true /* update details */, 1234 false /* update snapshot */, 1235 false /* update description */); 1219 1236 } 1220 1237 1221 1238 void VBoxSelectorWnd::snapshotChanged (const VBoxSnapshotEvent &aEvent) 1222 1239 { 1223 refreshVMItem (aEvent.machineId, false, true, false); 1240 refreshVMItem (aEvent.machineId, 1241 false /* update details */, 1242 true /* update snapshot */, 1243 false /* update description */); 1224 1244 } 1225 1245
Note:
See TracChangeset
for help on using the changeset viewer.