From: <sba...@us...> - 2021-05-22 05:32:56
|
This is an automated email from the git hooks/post-receive-user script. sbaldovi pushed a commit to branch master in repository fuse. View the commit online: https://sourceforge.net/p/fuse-emulator/fuse/ci/65293b0db1e6f6f35e1752f50e8be7b523990add/ The following commit(s) were added to refs/heads/master by this push: new 65293b0d Fix loading binary data from deleted files in GTK 65293b0d is described below commit 65293b0db1e6f6f35e1752f50e8be7b523990add Author: Sergio Baldoví <ser...@gm...> AuthorDate: Sat May 22 07:29:31 2021 +0200 Fix loading binary data from deleted files in GTK The dialog keeps info about last operation. This patch checks that last file exists before reading it (thanks, Crisis) --- ChangeLog | 1 + ui/gtk/binary.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 69bf3d3f..ebf40c22 100644 --- a/ChangeLog +++ b/ChangeLog @@ -10,6 +10,7 @@ found (Alberto Garcia). * WidgetUI: rearrange AY register and Z80 flags in the debugger (Gergely Szasz). + * GTK UI: Fix loading binary data from deleted files (thanks, Crisis). 2021-02-27 Philip Kendall <phi...@sh...> diff --git a/ui/gtk/binary.c b/ui/gtk/binary.c index c6ea2f31..b664030f 100644 --- a/ui/gtk/binary.c +++ b/ui/gtk/binary.c @@ -200,7 +200,7 @@ menu_file_loadbinarydata( GtkAction *gtk_action GCC_UNUSED, * If the filename is blank it's not been selected previously. * Pop up the file selector. */ - if( !load_info.filename ) + if( !load_info.filename || !compat_file_exists( load_info.filename ) ) { load_info.filename = ui_get_open_filename( "Fuse - Load Binary Data" ); if( !load_info.filename ) |