diff options
-rw-r--r-- | source/blender/editors/space_file/file_ops.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/editors/space_file/file_ops.c b/source/blender/editors/space_file/file_ops.c index 9e7adaa2de5..f8d13bb6adb 100644 --- a/source/blender/editors/space_file/file_ops.c +++ b/source/blender/editors/space_file/file_ops.c @@ -646,6 +646,10 @@ static int bookmark_move_exec(bContext *C, wmOperator *op) const int act_index = sfile->bookmarknr; int new_index; + if (totitems < 2) { + return OPERATOR_CANCELLED; + } + switch (direction) { case FILE_BOOKMARK_MOVE_TOP: new_index = 0; |