diff --git a/doc/ChangeLog b/doc/ChangeLog index b6a33e797..f86131f86 100644 --- a/doc/ChangeLog +++ b/doc/ChangeLog @@ -1,3 +1,8 @@ +2011-05-09 Vadim Kurland + + * FWCmdAddObject.cpp (redo): fixes #2391 "selecting 'new library' + when editor panel not on 'editor' tab causes crash" + 2011-05-06 vadim * PolicyCompiler_pf_writers.cpp (_printQueue): see #2390 Classify diff --git a/src/libgui/FWCmdAddObject.cpp b/src/libgui/FWCmdAddObject.cpp index c68bc60c0..7a300c041 100644 --- a/src/libgui/FWCmdAddObject.cpp +++ b/src/libgui/FWCmdAddObject.cpp @@ -283,7 +283,9 @@ void FWCmdAddLibrary::redo() // changes when editor opens //if (mw->isEditorVisible()) - QCoreApplication::postEvent(mw, new openObjectInEditorEvent(filename, lib->getId())); - QCoreApplication::postEvent(mw, new showObjectInTreeEvent(filename, lib->getId())); + QCoreApplication::postEvent( + mw, new showObjectInTreeEvent(filename, lib->getId())); + QCoreApplication::postEvent( + mw, new openObjectInEditorEvent(filename, lib->getId())); }