diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/helper/action.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/helper/action.cpp b/src/helper/action.cpp index d67bc5fc2..9b8cbfce8 100644 --- a/src/helper/action.cpp +++ b/src/helper/action.cpp @@ -17,6 +17,8 @@ #include "debug/timestamp.h" #include "debug/simple-event.h" #include "debug/event-tracker.h" +#include "ui/view/view.h" +#include "document.h" #include "helper/action.h" static void sp_action_class_init (SPActionClass *klass); @@ -129,6 +131,10 @@ public: : ActionEventBase(share_static_string("action")) { _addProperty(share_static_string("timestamp"), timestamp()); + SPDocument *document = action->view->doc(); + if (document) { + _addProperty(share_static_string("document"), document->serial()); + } _addProperty(share_static_string("verb"), action->id); } }; |
