Finishing touches on PWE v1.2.0

This commit is contained in:
Aruki
2017-07-26 03:42:57 -06:00
parent f980bc7536
commit 4084375dce
10 changed files with 46 additions and 186 deletions

View File

@@ -367,14 +367,14 @@ void CExportGameDialog::Export()
// Validate export dir
if (ExportDir.isEmpty())
{
UICommon::ErrorMsg(this, "Please specify an output directory!");
UICommon::ErrorMsg(this, "Please specify an empty output directory!");
return;
}
else if (!FileUtil::IsEmpty( TO_TSTRING(ExportDir) ))
{
QMessageBox::Button Button = QMessageBox::warning(this, "Warning", "<b>Warning:</b> The specified directory is not empty. Export anyway?", QMessageBox::Ok | QMessageBox::Cancel, QMessageBox::NoButton);
if (Button != QMessageBox::Ok) return;
UICommon::ErrorMsg(this, "The output directory is not empty!");
return;
}
// Verify name map is valid