[evolution/gnome-3-24] Warning could be printed if debug enabled for undo&redo
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/gnome-3-24] Warning could be printed if debug enabled for undo&redo
- Date: Fri, 31 Mar 2017 08:27:26 +0000 (UTC)
commit 95c94ce8b0e85f16e1195ef96f5a46c3f90e28ea
Author: Tomas Popela <tpopela redhat com>
Date: Thu Mar 30 17:13:01 2017 +0200
Warning could be printed if debug enabled for undo&redo
It could happen for the Return key press, where the fragment is not part
of the event when it is added, but it's added later.
.../web-extension/e-editor-undo-redo-manager.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/modules/webkit-editor/web-extension/e-editor-undo-redo-manager.c
b/src/modules/webkit-editor/web-extension/e-editor-undo-redo-manager.c
index 4aa8dc5..321d01a 100644
--- a/src/modules/webkit-editor/web-extension/e-editor-undo-redo-manager.c
+++ b/src/modules/webkit-editor/web-extension/e-editor-undo-redo-manager.c
@@ -147,7 +147,7 @@ print_history_event (EEditorHistoryEvent *event)
if (g_object_get_data (G_OBJECT (event->data.fragment), "history-control-key"))
printf (" control\n");
case HISTORY_INPUT:
- if (g_object_get_data (G_OBJECT (event->data.fragment), "history-return-key"))
+ if (event->data.fragment && g_object_get_data (G_OBJECT (event->data.fragment),
"history-return-key"))
printf (" type: return\n");
case HISTORY_REMOVE_LINK:
case HISTORY_SMILEY:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]