Commit fbdae139 authored by Alexander Semke's avatar Alexander Semke

Don't crash when openning a saved octave worksheet in an already open but empty worksheet.

parent 80584a45
......@@ -1000,6 +1000,7 @@ void Worksheet::load(QIODevice* device)
//cleanup the worksheet and all it contains
delete m_session;
m_loginDone = false;
//file can only be loaded in a worksheet that was not eidted/modified yet (s.a. CantorShell::load())
//in this case on the default "first entry" is available -> delete it.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment