Merge branch 'master' into blender2.8
[blender.git] / source / blender / windowmanager / intern / wm_files_link.c
index fec4d51dbd8b29b17f4f9a2886b7afd1a5413666..a33df1bc1f2d307af1584c8a08c53af3d5074241 100644 (file)
@@ -442,7 +442,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... */