Salome HOME
projects
/
modules
/
gui.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d1cabf
)
INT PAL 52703: TC7.6.0: Show SIGSEGV when you try Update Study in NoteBook
imn/52703
author
imn
<imn@opencascade.com>
Wed, 31 Aug 2016 14:57:43 +0000
(17:57 +0300)
committer
imn
<imn@opencascade.com>
Wed, 31 Aug 2016 14:57:43 +0000
(17:57 +0300)
src/SalomeApp/SalomeApp_Application.cxx
patch
|
blob
|
history
diff --git
a/src/SalomeApp/SalomeApp_Application.cxx
b/src/SalomeApp/SalomeApp_Application.cxx
index dea5dccc20ca24e3f1d64f1ce18256d8b73ac03c..fa6c6ab7bfa2ce31eb2229e8ab84f026bebb4700 100644
(file)
--- a/
src/SalomeApp/SalomeApp_Application.cxx
+++ b/
src/SalomeApp/SalomeApp_Application.cxx
@@
-2028,7
+2028,8
@@
bool SalomeApp_Application::onRestoreStudy( const QString& theDumpScript,
{
#ifndef DISABLE_PYCONSOLE
_PTR(Study) aStudyDS = newStudy->studyDS();
- app->getNoteBook()->Init( aStudyDS );
+ if ( app->getNoteBook() )
+ app->getNoteBook()->Init( aStudyDS );
newStudy->updateFromNotebook(theStudyName, theIsStudySaved);
newStudy->Modified();
updateDesktopTitle();