diff options
| author | Nicolas Dufour <nicoduf@yahoo.fr> | 2013-03-19 07:01:10 +0000 |
|---|---|---|
| committer | JazzyNico <nicoduf@yahoo.fr> | 2013-03-19 07:01:10 +0000 |
| commit | 4002d292bbb499304af30bc060ce0200481062b8 (patch) | |
| tree | f43e785df061301652b89800183647bd56bbac55 /src/event-log.cpp | |
| parent | Drop remaining unused functions (diff) | |
| download | inkscape-4002d292bbb499304af30bc060ce0200481062b8.tar.gz inkscape-4002d292bbb499304af30bc060ce0200481062b8.zip | |
Partial fix for Bug #1071082 (Undo History doesn't work if open before file is opened) by vaifrax.
(bzr r12225)
Diffstat (limited to 'src/event-log.cpp')
| -rw-r--r-- | src/event-log.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/event-log.cpp b/src/event-log.cpp index e2528ce0b..9304f68c5 100644 --- a/src/event-log.cpp +++ b/src/event-log.cpp @@ -38,7 +38,18 @@ EventLog::EventLog(SPDocument* document) : curr_row[_columns.type] = SP_VERB_FILE_NEW; } -EventLog::~EventLog() { } +EventLog::~EventLog() { + // avoid crash by clearing entries here (see bug #1071082) + if (_connected) { + (*_callback_connections)[CALLB_SELECTION_CHANGE].block(); + (*_callback_connections)[CALLB_EXPAND].block(); + + _event_list_store->clear(); + + (*_callback_connections)[CALLB_EXPAND].block(false); + (*_callback_connections)[CALLB_SELECTION_CHANGE].block(false); + } +} void EventLog::notifyUndoEvent(Event* log) |
