From d41b61293155d3a0040c7bd8dfc632e6c741832d Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Sun, 1 Nov 2009 22:00:14 +0000 Subject: [PATCH] File selector no longer exits event loop when you enter a filename and exit the textfield. git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1138 416bcca6-2ee7-4201-b75f-2eb2f807beb1 --- filesel.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/filesel.c b/filesel.c index 5759c34d..e91823d3 100644 --- a/filesel.c +++ b/filesel.c @@ -1388,7 +1388,7 @@ byte Button_Load_or_Save(byte load, byte image) if(load) { // Determine the type - if(File_exists(Main_filename)) + if(File_exists(Main_filename)) { Selected_type = 0; if(Directory_exists(Main_filename)) Selected_type = 1; @@ -1403,7 +1403,6 @@ byte Button_Load_or_Save(byte load, byte image) if(Directory_exists(Main_filename)) Selected_type = 1; else Selected_type = 0; } - has_clicked_ok=1; } else {