Skip to content
Snippets Groups Projects
Commit e96dbf13 authored by Philipp Oeser's avatar Philipp Oeser
Browse files

Fix #107384: ops.file.bookmark_move.poll() crash outside File Browser

This was a mistake in backporting 671c3e1f (backport was
3e3a70a8), so a fix for the `blender-v2.93-release` branch only.
parent 6acfa9b5
Branches
Tags
No related merge requests found
......@@ -1282,6 +1282,10 @@ static int bookmark_move_exec(bContext *C, wmOperator *op)
static bool file_bookmark_move_poll(bContext *C)
{
if (!ED_operator_file_active(C)) {
return false;
}
SpaceFile *sfile = CTX_wm_space_file(C);
return sfile->bookmarknr != -1;
......@@ -1302,7 +1306,6 @@ void FILE_OT_bookmark_move(wmOperatorType *ot)
ot->description = "Move the active bookmark up/down in the list";
/* api callbacks */
ot->poll = ED_operator_file_active;
ot->exec = bookmark_move_exec;
ot->poll = file_bookmark_move_poll;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment