Forgot to return actual value in previous own commit.
authorBastien Montagne <montagne29@wanadoo.fr>
Wed, 7 Feb 2018 21:26:11 +0000 (22:26 +0100)
committerBastien Montagne <montagne29@wanadoo.fr>
Wed, 7 Feb 2018 21:26:37 +0000 (22:26 +0100)
Sorry about the noise...

source/blender/windowmanager/intern/wm_files_link.c

index 171863454d92610b1e288b9cc27faa87b6fdd6f2..fb611290aa56bdeb9daefa8054578b76335fa98d 100644 (file)
@@ -403,7 +403,7 @@ static int wm_link_append_exec(bContext *C, wmOperator *op)
        if (lapp_data->num_items == 0) {
                /* Early out in case there is nothing to link. */
                wm_link_append_data_free(lapp_data);
-               return;
+               return OPERATOR_CANCELLED;
        }
 
        /* XXX We'd need re-entrant locking on Main for this to work... */