Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Education
Cantor
Commits
bccc5009
Commit
bccc5009
authored
Nov 17, 2019
by
Alexander Semke
Browse files
Don't crash when deleting a worksheet while still waiting for the input from the backend.
parent
066a3150
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/worksheet.cpp
View file @
bccc5009
...
...
@@ -108,6 +108,11 @@ Worksheet::~Worksheet()
// while the scene is deleted. Maybe there is a better solution to
// this problem, but I can't seem to find it.
m_firstEntry
=
nullptr
;
//disconnect from everything, no need to react on session status changes
//in the logout() when deleting the worksheet
disconnect
(
m_session
,
nullptr
,
nullptr
,
nullptr
);
if
(
m_session
&&
m_session
->
status
()
!=
Cantor
::
Session
::
Disable
)
m_session
->
logout
();
if
(
m_session
)
...
...
@@ -116,7 +121,6 @@ Worksheet::~Worksheet()
if
(
m_session
->
status
()
!=
Cantor
::
Session
::
Disable
)
m_session
->
logout
();
m_session
->
deleteLater
();
m_session
=
nullptr
;
}
if
(
m_jupyterMetadata
)
delete
m_jupyterMetadata
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment