Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-06-02 19:38:59 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-06-03 03:23:40 +0300
commitb60a72eaab3ac25dbcbcaeedb87719624b4d8739 (patch)
tree025c955e7dba09f61e1ddfc1d3d709b44b706b5f /source/blender/editors/space_file/file_ops.c
parent2dcb6782e06d285c7d500c34c85c0ab86c7c183a (diff)
Fix invalid return values from file_execute
Error in 6c8c30d865ee8aafc3a088ce97b1caa4c4cc9ed7
Diffstat (limited to 'source/blender/editors/space_file/file_ops.c')
-rw-r--r--source/blender/editors/space_file/file_ops.c4
1 files changed, 2 insertions, 2 deletions
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))