Patch #1981 2007-05-03 19:49
kkez
pr. from user templates always complains about dir not empty- Download
- 1981-pr_from_user_t.patch (562 bytes)
Index: src/sdk/templatemanager.cpp
===================================================================
--- src/sdk/templatemanager.cpp (revision 3910)
+++ src/sdk/templatemanager.cpp (working copy)
@@ -158,7 +158,8 @@
}
// check for existing files; if found, notify about overwriting them
- if (wxDir::GetAllFiles(path, 0) > 0)
+ wxDir dir(path);
+ if (dir.HasFiles() || dir.HasSubDirs())
{
if (cbMessageBox(path + _(" already contains other files.\n"
"If you continue, files with the same names WILL BE OVERWRITTEN.\n"
History
mandrav 2007-05-04 09:59
Patch applied, thank you.