Don't crash when openning a saved octave worksheet in an already open but empty worksheet.
Showing with 1 addition and 0 deletions
|...||...||@@ -1000,6 +1000,7 @@ void Worksheet::load(QIODevice* device)|
|//cleanup the worksheet and all it contains|
|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.|