[Bf-blender-cvs] [b60a72eaab3] master: Fix invalid return values from file_execute

Campbell Barton noreply at git.blender.org
Thu Jun 3 02:47:24 CEST 2021


Commit: b60a72eaab3ac25dbcbcaeedb87719624b4d8739
Author: Campbell Barton
Date:   Thu Jun 3 02:38:59 2021 +1000
Branches: master
https://developer.blender.org/rBb60a72eaab3ac25dbcbcaeedb87719624b4d8739

Fix invalid return values from file_execute

Error in 6c8c30d865ee8aafc3a088ce97b1caa4c4cc9ed7

===================================================================

M	source/blender/editors/space_file/file_ops.c

===================================================================

diff --git a/source/blender/editors/space_file/file_ops.c b/source/blender/editors/space_file/file_ops.c
index 36f8476d0c9..7c14f4659eb 100644
--- a/source/blender/editors/space_file/file_ops.c
+++ b/source/blender/editors/space_file/file_ops.c
@@ -1744,7 +1744,7 @@ static bool file_execute(bContext *C, SpaceFile *sfile)
   /* directory change */
   if (file && (file->typeflag & FILE_TYPE_DIR)) {
     if (!file->relpath) {
-      return OPERATOR_CANCELLED;
+      return false;
     }
 
     if (FILENAME_IS_PARENT(file->relpath)) {
@@ -1783,7 +1783,7 @@ static bool file_execute(bContext *C, SpaceFile *sfile)
     WM_event_fileselect_event(CTX_wm_manager(C), op, EVT_FILESELECT_EXEC);
   }
 
-  return OPERATOR_FINISHED;
+  return true;
 }
 
 static int file_exec(bContext *C, wmOperator *UNUSED(op))



More information about the Bf-blender-cvs mailing list