* FWCmdAddObject.cpp (redo): fixes #2391 "selecting 'new library'

when editor panel not on 'editor' tab causes crash"
This commit is contained in:
Vadim Kurland
2011-05-09 11:27:57 -07:00
parent 880cfb13fc
commit 3b70160562
2 changed files with 9 additions and 2 deletions
+5
View File
@@ -1,3 +1,8 @@
2011-05-09 Vadim Kurland <vadim@netcitadel.com>
* FWCmdAddObject.cpp (redo): fixes #2391 "selecting 'new library'
when editor panel not on 'editor' tab causes crash"
2011-05-06 vadim <vadim@netcitadel.com>
* PolicyCompiler_pf_writers.cpp (_printQueue): see #2390 Classify
+4 -2
View File
@@ -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()));
}