mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-12 05:36:59 -04:00
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:
+2
-1
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user