Commit 74567b80 authored by Nikita Sirgienko's avatar Nikita Sirgienko

Fix major bug with removing first worksheet entry after worksheet load

parent 138f4980
......@@ -1089,7 +1089,7 @@ bool Worksheet::load(QIODevice* device)
//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.
if (m_firstEntry) {
m_firstEntry->deleteLater();
delete m_firstEntry;
m_firstEntry = nullptr;
}
......
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