diff --git a/arm9/source/file_browse.cpp b/arm9/source/file_browse.cpp index e46f640..8b4df79 100644 --- a/arm9/source/file_browse.cpp +++ b/arm9/source/file_browse.cpp @@ -496,6 +496,12 @@ string browseForFile (void) { printf ("Deleting file, please wait..."); } remove(entry->name.c_str()); + char filePath[256]; + snprintf(filePath, sizeof(filePath), "%s%s", path, entry->name.c_str()); + if (strcmp(filePath, clipboard) == 0) { + clipboardUsed = false; // Disable clipboard restore + clipboardOn = false; + } getDirectoryContents (dirContents); fileOffset--; pressed = 0;