儲存庫 vbox 的更動 18402
- 時間撮記:
- 2009-3-27 下午02:52:23 (16 年 以前)
- 位置:
- trunk/src/VBox/Frontends/VirtualBox
- 檔案:
-
- 修改 3 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Frontends/VirtualBox/include/VBoxProblemReporter.h
r18132 r18402 138 138 { 139 139 return messageOkCancel (aParent, aType, aMessage, QString::null, 140 aAutoConfirmId, aOkText, aCancelText); 141 } 140 aAutoConfirmId, aOkText, aCancelText); } 142 141 143 142 bool showModalProgressDialog (CProgress &aProgress, const QString &aTitle, … … 148 147 /* Generic problem handlers */ 149 148 bool askForOverridingFileIfExists (const QString& path, QWidget *aParent = NULL) const; 150 bool askForOverridingFilesIfExists (const QStringList& aPaths, QWidget *aParent /* = NULL */) const; 149 bool askForOverridingFilesIfExists (const QStringList& aPaths, QWidget *aParent = NULL) const; 150 151 void cannotDeleteFile (const QString& path, QWidget *aParent = NULL) const; 151 152 152 153 /* Special problem handlers */ -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxExportApplianceWzd.cpp
r18378 r18402 157 157 if (!vboxProblem().askForOverridingFilesIfExists (files, this)) 158 158 return; 159 /* Ok all is confirmed so delete all the files which exists */ 160 foreach (const QString &file, files) 161 { 162 QFile f (file); 163 if (f.exists()) 164 if (!f.remove()) 165 { 166 vboxProblem().cannotDeleteFile (file, this); 167 return; 168 } 169 } 159 170 /* Export the VMs, on success we are finished */ 160 171 if (exportVMs(*appliance)) -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxProblemReporter.cpp
r18305 r18402 323 323 return true; 324 324 } 325 326 void VBoxProblemReporter::cannotDeleteFile (const QString& path, QWidget *aParent /* = NULL */) const 327 { 328 message (aParent, Error, 329 tr ("Failed to remove the file <b>%1</b>.<br /><br />Please try to remove that file yourself & try again.") 330 .arg (path)); 331 } 332 325 333 // Special Problem handlers 326 334 /////////////////////////////////////////////////////////////////////////////
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器