- Timestamp:
- Apr 4, 2013 7:20:01 AM (12 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.cpp
r45316 r45325 1191 1191 } 1192 1192 1193 void UIMessageCenter::cannotCreateMachine(const CVirtualBox &vbox, QWidget *pParent /*= 0*/) 1193 bool UIMessageCenter::confirmHardDisklessMachine(QWidget *pParent /*= 0*/) const 1194 { 1195 return messageOkCancel(pParent ? pParent : mainWindowShown(), MessageType_Warning, 1196 tr("You are about to create a new virtual machine without a hard drive. " 1197 "You will not be able to install an operating system on the machine " 1198 "until you add one. In the mean time you will only be able to start the " 1199 "machine using a virtual optical disk or from the network."), 1200 0 /* auto-confirm id */, 1201 tr("Continue", "no hard disk attached"), 1202 tr("Go Back", "no hard disk attached")); 1203 } 1204 1205 void UIMessageCenter::cannotCreateMachine(const CVirtualBox &vbox, QWidget *pParent /*= 0*/) const 1194 1206 { 1195 1207 message(pParent ? pParent : mainWindowShown(), MessageType_Error, … … 1198 1210 } 1199 1211 1200 void UIMessageCenter::cannotRegisterMachine(const CVirtualBox &vbox, const QString &strMachineName, QWidget *pParent /*= 0*/) 1212 void UIMessageCenter::cannotRegisterMachine(const CVirtualBox &vbox, const QString &strMachineName, QWidget *pParent /*= 0*/) const 1201 1213 { 1202 1214 message(pParent ? pParent : mainWindowShown(), MessageType_Error, … … 1206 1218 } 1207 1219 1208 void UIMessageCenter::cannotCreateClone(const CMachine &machine, QWidget *pParent /*= 0*/) 1220 void UIMessageCenter::cannotCreateClone(const CMachine &machine, QWidget *pParent /*= 0*/) const 1209 1221 { 1210 1222 /* Preserve error-info: */ … … 1217 1229 } 1218 1230 1219 void UIMessageCenter::cannotCreateClone(const CProgress &progress, const QString &strMachineName, QWidget *pParent /* = 0 */)1231 void UIMessageCenter::cannotCreateClone(const CProgress &progress, const QString &strMachineName, QWidget *pParent /*= 0*/) const 1220 1232 { 1221 1233 message(pParent ? pParent : mainWindowShown(), MessageType_Error, … … 1225 1237 } 1226 1238 1227 void UIMessageCenter::cannotOverwriteHardDiskStorage(const QString &strLocation, QWidget *pParent /*= 0*/) 1239 void UIMessageCenter::cannotOverwriteHardDiskStorage(const QString &strLocation, QWidget *pParent /*= 0*/) const 1228 1240 { 1229 1241 message(pParent ? pParent : mainWindowShown(), MessageType_Info, … … 1235 1247 } 1236 1248 1237 void UIMessageCenter::cannotCreateHardDiskStorage(const CVirtualBox &vbox, const QString &strLocation, QWidget *pParent /*= 0*/) 1249 void UIMessageCenter::cannotCreateHardDiskStorage(const CVirtualBox &vbox, const QString &strLocation, QWidget *pParent /*= 0*/) const 1238 1250 { 1239 1251 message(pParent ? pParent : mainWindowShown(), MessageType_Error, … … 1243 1255 } 1244 1256 1245 void UIMessageCenter::cannotCreateHardDiskStorage(const CMedium &medium, const QString &strLocation, QWidget *pParent /*= 0*/) 1257 void UIMessageCenter::cannotCreateHardDiskStorage(const CMedium &medium, const QString &strLocation, QWidget *pParent /*= 0*/) const 1246 1258 { 1247 1259 message(pParent ? pParent : mainWindowShown(), MessageType_Error, … … 1251 1263 } 1252 1264 1253 void UIMessageCenter::cannotCreateHardDiskStorage(const CProgress &progress, const QString &strLocation, QWidget *pParent /*= 0*/) 1265 void UIMessageCenter::cannotCreateHardDiskStorage(const CProgress &progress, const QString &strLocation, QWidget *pParent /*= 0*/) const 1254 1266 { 1255 1267 message(pParent ? pParent : mainWindowShown(), MessageType_Error, … … 1259 1271 } 1260 1272 1261 void UIMessageCenter:: warnAboutCannotRemoveMachineFolder(QWidget *pParent, const QString &strFolderName)1273 void UIMessageCenter::cannotRemoveMachineFolder(const QString &strFolderName, QWidget *pParent /*= 0*/) const 1262 1274 { 1263 1275 QFileInfo fi(strFolderName); … … 1268 1280 } 1269 1281 1270 void UIMessageCenter:: warnAboutCannotRewriteMachineFolder(QWidget *pParent, const QString &strFolderName)1282 void UIMessageCenter::cannotRewriteMachineFolder(const QString &strFolderName, QWidget *pParent /*= 0*/) const 1271 1283 { 1272 1284 QFileInfo fi(strFolderName); … … 1277 1289 } 1278 1290 1279 void UIMessageCenter:: warnAboutCannotCreateMachineFolder(QWidget *pParent, const QString &strFolderName)1291 void UIMessageCenter::cannotCreateMachineFolder(const QString &strFolderName, QWidget *pParent /*= 0*/) const 1280 1292 { 1281 1293 QFileInfo fi(strFolderName); … … 1286 1298 } 1287 1299 1288 bool UIMessageCenter::confirmHardDisklessMachine(QWidget *pParent) 1289 { 1290 return message(pParent, MessageType_Warning, 1291 tr("You are about to create a new virtual machine without a hard drive. " 1292 "You will not be able to install an operating system on the machine " 1293 "until you add one. In the mean time you will only be able to start the " 1294 "machine using a virtual optical disk or from the network."), 1295 0 /* auto-confirm id */, 1296 AlertButton_Ok | AlertButtonOption_Default, 1297 AlertButton_Cancel | AlertButtonOption_Escape, 1298 0, 1299 tr("Continue", "no hard disk attached"), 1300 tr("Go Back", "no hard disk attached")) == AlertButton_Ok; 1301 } 1302 1303 void UIMessageCenter::cannotImportAppliance(CAppliance *pAppliance, 1304 QWidget *pParent /* = NULL */) const 1305 { 1306 if (pAppliance->isNull()) 1307 { 1308 message(pParent ? pParent : mainWindowShown(), 1309 MessageType_Error, 1310 tr("Failed to open appliance.")); 1311 } 1312 else 1313 { 1314 /* Preserve the current error info before calling the object again */ 1315 COMResult res(*pAppliance); 1316 1317 /* Add the warnings in the case of an early error */ 1318 QVector<QString> w = pAppliance->GetWarnings(); 1319 QString wstr; 1320 foreach(const QString &str, w) 1321 wstr += QString("<br />Warning: %1").arg(str); 1322 if (!wstr.isEmpty()) 1323 wstr = "<br />" + wstr; 1324 1325 message(pParent ? pParent : mainWindowShown(), 1326 MessageType_Error, 1327 tr("Failed to open/interpret appliance <b>%1</b>.").arg(pAppliance->GetPath()), 1328 wstr + 1329 formatErrorInfo(res)); 1330 } 1331 } 1332 1333 void UIMessageCenter::cannotImportAppliance(const CProgress &progress, 1334 CAppliance* pAppliance, 1335 QWidget *pParent /* = NULL */) const 1336 { 1337 AssertWrapperOk(progress); 1338 1339 message(pParent ? pParent : mainWindowShown(), 1340 MessageType_Error, 1341 tr("Failed to import appliance <b>%1</b>.").arg(pAppliance->GetPath()), 1342 formatErrorInfo(progress.GetErrorInfo())); 1343 } 1344 1345 void UIMessageCenter::cannotCheckFiles(const CProgress &progress, 1346 QWidget *pParent /* = NULL */) const 1347 { 1348 AssertWrapperOk(progress); 1349 1350 message(pParent ? pParent : mainWindowShown(), 1351 MessageType_Error, 1300 void UIMessageCenter::cannotImportAppliance(CAppliance &appliance, QWidget *pParent /*= 0*/) const 1301 { 1302 /* Preserve error-info: */ 1303 QString strErrorInfo = formatErrorInfo(appliance); 1304 /* Add the warnings in the case of an early error: */ 1305 QString strWarningInfo; 1306 foreach(const QString &strWarning, appliance.GetWarnings()) 1307 strWarningInfo += QString("<br />Warning: %1").arg(strWarning); 1308 if (!strWarningInfo.isEmpty()) 1309 strWarningInfo = "<br />" + strWarningInfo; 1310 /* Show the message: */ 1311 message(pParent ? pParent : mainWindowShown(), MessageType_Error, 1312 tr("Failed to open/interpret appliance <b>%1</b>.") 1313 .arg(appliance.GetPath()), 1314 strWarningInfo + strErrorInfo); 1315 } 1316 1317 void UIMessageCenter::cannotImportAppliance(const CProgress &progress, const QString &strPath, QWidget *pParent /*= 0*/) const 1318 { 1319 message(pParent ? pParent : mainWindowShown(), MessageType_Error, 1320 tr("Failed to import appliance <b>%1</b>.") 1321 .arg(strPath), 1322 !progress.isOk() ? formatErrorInfo(progress) : formatErrorInfo(progress.GetErrorInfo())); 1323 } 1324 1325 void UIMessageCenter::cannotCheckFiles(const CProgress &progress, QWidget *pParent /*= 0*/) const 1326 { 1327 message(pParent ? pParent : mainWindowShown(), MessageType_Error, 1352 1328 tr("Failed to check files."), 1353 formatErrorInfo(progress.GetErrorInfo())); 1354 } 1355 1356 void UIMessageCenter::cannotRemoveFiles(const CProgress &progress, 1357 QWidget *pParent /* = NULL */) const 1358 { 1359 AssertWrapperOk(progress); 1360 1361 message(pParent ? pParent : mainWindowShown(), 1362 MessageType_Error, 1329 !progress.isOk() ? formatErrorInfo(progress) : formatErrorInfo(progress.GetErrorInfo())); 1330 } 1331 1332 void UIMessageCenter::cannotRemoveFiles(const CProgress &progress, QWidget *pParent /*= 0*/) const 1333 { 1334 message(pParent ? pParent : mainWindowShown(), MessageType_Error, 1363 1335 tr("Failed to remove file."), 1364 formatErrorInfo(progress.GetErrorInfo())); 1365 } 1366 1367 bool UIMessageCenter::confirmExportMachinesInSaveState(const QStringList &strMachineNames, 1368 QWidget *pParent /* = NULL */) const 1336 !progress.isOk() ? formatErrorInfo(progress) : formatErrorInfo(progress.GetErrorInfo())); 1337 } 1338 1339 bool UIMessageCenter::confirmExportMachinesInSaveState(const QStringList &machineNames, QWidget *pParent /*= 0*/) const 1369 1340 { 1370 1341 return messageOkCancel(pParent ? pParent : mainWindowShown(), MessageType_Warning, 1371 tr("<p>The %n following virtual machine(s) are currently in a saved state: <b>%1</b></p>" 1372 "<p>If you continue the runtime state of the exported machine(s) " 1373 "will be discarded. The other machine(s) will not be changed.</p>", "This text is never used with n == 0. Feel free to drop the %n where possible, we only included it because of problems with Qt Linguist (but the user can see how many machines are in the list and doesn't need to be told).", 1374 strMachineNames.size()).arg(VBoxGlobal::toHumanReadableList(strMachineNames)), 1375 0 /* auto-confirm id */, 1376 tr("Continue")); 1377 } 1378 1379 void UIMessageCenter::cannotExportAppliance(CAppliance *pAppliance, 1380 QWidget *pParent /* = NULL */) const 1381 { 1382 if (pAppliance->isNull()) 1383 { 1384 message(pParent ? pParent : mainWindowShown(), 1385 MessageType_Error, 1386 tr("Failed to create appliance.")); 1387 } 1388 else 1389 { 1390 /* Preserve the current error info before calling the object again */ 1391 COMResult res(*pAppliance); 1392 1393 message(pParent ? pParent : mainWindowShown(), 1394 MessageType_Error, 1395 tr("Failed to prepare the export of the appliance <b>%1</b>.").arg(pAppliance->GetPath()), 1396 formatErrorInfo(res)); 1397 } 1398 } 1399 1400 void UIMessageCenter::cannotExportAppliance(const CMachine &machine, 1401 CAppliance *pAppliance, 1402 QWidget *pParent /* = NULL */) const 1403 { 1404 if (pAppliance->isNull() || 1405 machine.isNull()) 1406 { 1407 message(pParent ? pParent : mainWindowShown(), 1408 MessageType_Error, 1409 tr("Failed to create an appliance.")); 1410 } 1411 else 1412 { 1413 message(pParent ? pParent : mainWindowShown(), 1414 MessageType_Error, 1415 tr("Failed to prepare the export of the appliance <b>%1</b>.").arg(pAppliance->GetPath()), 1416 formatErrorInfo(machine)); 1417 } 1418 } 1419 1420 void UIMessageCenter::cannotExportAppliance(const CProgress &progress, 1421 CAppliance* pAppliance, 1422 QWidget *pParent /* = NULL */) const 1423 { 1424 AssertWrapperOk(progress); 1425 1426 message(pParent ? pParent : mainWindowShown(), 1427 MessageType_Error, 1428 tr("Failed to export appliance <b>%1</b>.").arg(pAppliance->GetPath()), 1429 formatErrorInfo(progress.GetErrorInfo())); 1430 } 1431 1432 void UIMessageCenter::cannotFindSnapshotByName(QWidget *pParent, 1433 const CMachine &machine, 1434 const QString &strName) const 1342 tr("<p>The %n following virtual machine(s) are currently in a saved state: <b>%1</b></p>" 1343 "<p>If you continue the runtime state of the exported machine(s) will be discarded. " 1344 "The other machine(s) will not be changed.</p>", 1345 "This text is never used with n == 0. Feel free to drop the %n where possible, " 1346 "we only included it because of problems with Qt Linguist " 1347 "(but the user can see how many machines are in the list and doesn't need to be told).", 1348 machineNames.size()) 1349 .arg(machineNames.join(", ")), 1350 0 /* auto-confirm id */, 1351 tr("Continue")); 1352 } 1353 1354 void UIMessageCenter::cannotExportAppliance(const CAppliance &appliance, QWidget *pParent /*= 0*/) const 1355 { 1356 /* Preserve error-info: */ 1357 QString strErrorInfo = formatErrorInfo(appliance); 1358 /* Show the message: */ 1359 message(pParent ? pParent : mainWindowShown(), MessageType_Error, 1360 tr("Failed to prepare the export of the appliance <b>%1</b>.") 1361 .arg(appliance.GetPath()), 1362 strErrorInfo); 1363 } 1364 1365 void UIMessageCenter::cannotExportAppliance(const CMachine &machine, const QString &strPath, QWidget *pParent /*= 0*/) const 1366 { 1367 message(pParent ? pParent : mainWindowShown(), MessageType_Error, 1368 tr("Failed to prepare the export of the appliance <b>%1</b>.") 1369 .arg(strPath), 1370 formatErrorInfo(machine)); 1371 } 1372 1373 void UIMessageCenter::cannotExportAppliance(const CProgress &progress, const QString &strPath, QWidget *pParent /*= 0*/) const 1374 { 1375 message(pParent ? pParent : mainWindowShown(), MessageType_Error, 1376 tr("Failed to export appliance <b>%1</b>.") 1377 .arg(strPath), 1378 !progress.isOk() ? formatErrorInfo(progress) : formatErrorInfo(progress.GetErrorInfo())); 1379 } 1380 1381 void UIMessageCenter::cannotFindSnapshotByName(const CMachine &machine, const QString &strName, QWidget *pParent /*= 0*/) const 1435 1382 { 1436 1383 message(pParent ? pParent : mainWindowShown(), MessageType_Error, -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.h
r45316 r45325 268 268 269 269 /* API: Wizards warnings: */ 270 void cannotCreateMachine(const CVirtualBox &vbox, QWidget *pParent = 0);271 void cannot RegisterMachine(const CVirtualBox &vbox, const QString &strMachineName, QWidget *pParent = 0);272 void cannot CreateClone(const CMachine &machine, QWidget *pParent = 0);273 void cannotCreateClone(const C Progress &progress, const QString &strMachineName, QWidget *pParent = 0);274 void cannot OverwriteHardDiskStorage(const QString &strLocation, QWidget *pParent = 0);275 void cannot CreateHardDiskStorage(const CVirtualBox &vbox, const QString &strLocation,QWidget *pParent = 0);276 void cannotCreateHardDiskStorage(const C Medium &medium, const QString &strLocation, QWidget *pParent = 0);277 void cannotCreateHardDiskStorage(const C Progress &progress, const QString &strLocation, QWidget *pParent = 0);278 void warnAboutCannotRemoveMachineFolder(QWidget *pParent, const QString &strFolderName);279 void warnAboutCannotRewriteMachineFolder(QWidget *pParent, const QString &strFolderName);280 void warnAboutCannotCreateMachineFolder(QWidget *pParent, const QString &strFolderName);281 bool confirmHardDisklessMachine(QWidget *pParent);282 void cannotImportAppliance(CAppliance *pAppliance, QWidget *pParent = NULL) const;283 void cannotImportAppliance(const CProgress &progress, CAppliance *pAppliance, QWidget *pParent = NULL) const;284 void cannotCheckFiles(const CProgress &progress, QWidget *pParent = NULL) const;285 void cannotRemoveFiles(const CProgress &progress, QWidget *pParent = NULL) const;286 bool confirmExportMachinesInSaveState(const QStringList & strMachineNames, QWidget *pParent = NULL) const;287 void cannotExportAppliance( CAppliance *pAppliance, QWidget *pParent = NULL) const;288 void cannotExportAppliance(const CMachine &machine, CAppliance *pAppliance, QWidget *pParent = NULL) const;289 void cannotExportAppliance(const CProgress &progress, CAppliance *pAppliance, QWidget *pParent = NULL) const;290 void cannotFindSnapshotByName( QWidget *pParent, const CMachine &machine, const QString &strMachine) const;270 bool confirmHardDisklessMachine(QWidget *pParent = 0) const; 271 void cannotCreateMachine(const CVirtualBox &vbox, QWidget *pParent = 0) const; 272 void cannotRegisterMachine(const CVirtualBox &vbox, const QString &strMachineName, QWidget *pParent = 0) const; 273 void cannotCreateClone(const CMachine &machine, QWidget *pParent = 0) const; 274 void cannotCreateClone(const CProgress &progress, const QString &strMachineName, QWidget *pParent = 0) const; 275 void cannotOverwriteHardDiskStorage(const QString &strLocation, QWidget *pParent = 0) const; 276 void cannotCreateHardDiskStorage(const CVirtualBox &vbox, const QString &strLocation,QWidget *pParent = 0) const; 277 void cannotCreateHardDiskStorage(const CMedium &medium, const QString &strLocation, QWidget *pParent = 0) const; 278 void cannotCreateHardDiskStorage(const CProgress &progress, const QString &strLocation, QWidget *pParent = 0) const; 279 void cannotRemoveMachineFolder(const QString &strFolderName, QWidget *pParent = 0) const; 280 void cannotRewriteMachineFolder(const QString &strFolderName, QWidget *pParent = 0) const; 281 void cannotCreateMachineFolder(const QString &strFolderName, QWidget *pParent = 0) const; 282 void cannotImportAppliance(CAppliance &appliance, QWidget *pParent = 0) const; 283 void cannotImportAppliance(const CProgress &progress, const QString &strPath, QWidget *pParent = 0) const; 284 void cannotCheckFiles(const CProgress &progress, QWidget *pParent = 0) const; 285 void cannotRemoveFiles(const CProgress &progress, QWidget *pParent = 0) const; 286 bool confirmExportMachinesInSaveState(const QStringList &machineNames, QWidget *pParent = 0) const; 287 void cannotExportAppliance(const CAppliance &appliance, QWidget *pParent = 0) const; 288 void cannotExportAppliance(const CMachine &machine, const QString &strPath, QWidget *pParent = 0) const; 289 void cannotExportAppliance(const CProgress &progress, const QString &strPath, QWidget *pParent = 0) const; 290 void cannotFindSnapshotByName(const CMachine &machine, const QString &strMachine, QWidget *pParent = 0) const; 291 291 292 292 /* API: Runtime UI warnings: */ -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
r45313 r45325 2968 2968 .arg (tr ("PB", "size suffix PBytes=1024 TBytes")); 2969 2969 return regexp; 2970 }2971 2972 /* static */2973 QString VBoxGlobal::toHumanReadableList(const QStringList &list)2974 {2975 QString strList;2976 for (int i = 0; i < list.size(); ++i)2977 {2978 strList += list.at(i);2979 if (i < list.size() - 1)2980 strList += + " ";2981 }2982 return strList;2983 2970 } 2984 2971 -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h
r45269 r45325 318 318 static QChar decimalSep(); 319 319 static QString sizeRegexp(); 320 321 static QString toHumanReadableList(const QStringList &list);322 320 323 321 static quint64 parseSize (const QString &); -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIApplianceImportEditorWidget.cpp
r45193 r45325 116 116 { 117 117 if (progress.isNull()) 118 msgCenter().cannotImportAppliance( m_pAppliance, this);118 msgCenter().cannotImportAppliance(*m_pAppliance, this); 119 119 else 120 msgCenter().cannotImportAppliance(progress, m_pAppliance , this);120 msgCenter().cannotImportAppliance(progress, m_pAppliance->GetPath(), this); 121 121 /* Delete the appliance in a case of an error */ 122 122 delete m_pAppliance; … … 152 152 if (!progress.isOk() || progress.GetResultCode() != 0) 153 153 { 154 msgCenter().cannotImportAppliance(progress, m_pAppliance , this);154 msgCenter().cannotImportAppliance(progress, m_pAppliance->GetPath(), this); 155 155 return false; 156 156 } … … 159 159 } 160 160 if (!fResult) 161 msgCenter().cannotImportAppliance( m_pAppliance, this);161 msgCenter().cannotImportAppliance(*m_pAppliance, this); 162 162 } 163 163 return false; -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevm/UIWizardCloneVM.cpp
r45316 r45325 105 105 if (newSnapshot.isNull()) 106 106 { 107 msgCenter().cannotFindSnapshotByName( this, m_machine, strSnapshotName);107 msgCenter().cannotFindSnapshotByName(m_machine, strSnapshotName, this); 108 108 return false; 109 109 } -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportApp.cpp
r45220 r45325 148 148 if (!progress.isOk() || progress.GetResultCode() != 0) 149 149 { 150 msgCenter().cannotExportAppliance(progress, &appliance, this);150 msgCenter().cannotExportAppliance(progress, appliance.GetPath(), this); 151 151 return false; 152 152 } … … 155 155 } 156 156 if (!fResult) 157 msgCenter().cannotExportAppliance( &appliance, this);157 msgCenter().cannotExportAppliance(appliance, this); 158 158 return false; 159 159 } -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/exportappliance/UIWizardExportAppPageBasic4.cpp
r45068 r45325 59 59 if (!fResult) 60 60 { 61 msgCenter().cannotExportAppliance(machine, pAppliance , thisImp());61 msgCenter().cannotExportAppliance(machine, pAppliance->GetPath(), thisImp()); 62 62 return; 63 63 } … … 77 77 } 78 78 if (!fResult) 79 msgCenter().cannotExportAppliance( pAppliance, thisImp());79 msgCenter().cannotExportAppliance(*pAppliance, thisImp()); 80 80 } 81 81 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic1.cpp
r43644 r45325 176 176 if (machineFolderCreated() && !cleanupMachineFolder()) 177 177 { 178 msgCenter(). warnAboutCannotRemoveMachineFolder(thisImp(), m_strMachineFolder);178 msgCenter().cannotRemoveMachineFolder(m_strMachineFolder, thisImp()); 179 179 return false; 180 180 } … … 194 194 if (QDir(strMachineFolder).exists()) 195 195 { 196 msgCenter(). warnAboutCannotRewriteMachineFolder(thisImp(), strMachineFolder);196 msgCenter().cannotRewriteMachineFolder(strMachineFolder, thisImp()); 197 197 return false; 198 198 } … … 202 202 if (!fMachineFolderCreated) 203 203 { 204 msgCenter(). warnAboutCannotCreateMachineFolder(thisImp(), strMachineFolder);204 msgCenter().cannotCreateMachineFolder(strMachineFolder, thisImp()); 205 205 return false; 206 206 } -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic3.cpp
r45315 r45325 251 251 { 252 252 /* Ask user about disk-less machine: */ 253 fResult = msgCenter().confirmHardDisklessMachine(this );253 fResult = msgCenter().confirmHardDisklessMachine(thisImp()); 254 254 } 255 255 else if (m_pDiskCreate->isChecked())
Note:
See TracChangeset
for help on using the changeset viewer.