UI: report if WM_OT_call_menu uses an unknown menu
[blender.git] / source / blender / editors / include / UI_interface.h
index 55c15ab60adc5cf10d2d14594979027950bace86..71d55c73faadea4f8b24d271ed506fa259b7e4f7 100644 (file)
@@ -349,7 +349,7 @@ void uiPupMenuEnd(struct bContext *C, struct uiPopupMenu *head);
 struct uiLayout *uiPupMenuLayout(uiPopupMenu *head);
 
 void uiPupMenuReports(struct bContext *C, struct ReportList *reports) ATTR_NONNULL();
-void uiPupMenuInvoke(struct bContext *C, const char *idname) ATTR_NONNULL();
+bool uiPupMenuInvoke(struct bContext *C, const char *idname, struct ReportList *reports) ATTR_NONNULL(1, 2);
 
 /* Popup Blocks
  *