Fix #5. Use our own function instead of wxRemoveFile, because the latter shows an error when the file doesn't exist.

This commit is contained in:
Twan van Laarhoven
2020-04-28 13:50:06 +02:00
parent ed918ce64f
commit 5f615b3117
5 changed files with 23 additions and 11 deletions
+2 -1
View File
@@ -9,6 +9,7 @@
// ----------------------------------------------------------------------------- : Includes
#include <util/prec.hpp>
#include <util/file_utils.hpp>
#include <wx/filename.h>
class VCS;
@@ -38,7 +39,7 @@ class VCS : public IntrusivePtrVirtualBase
}
/// Delete a file right off the disk
virtual void removeFile (const wxFileName& filename) {
wxRemoveFile(filename.GetFullName());
remove_file(filename.GetFullName());
}
DECLARE_REFLECTION_VIRTUAL();