Commit c79dd271 authored by Alexander Semke's avatar Alexander Semke
Browse files

Don't crash when all worksheets were closed and a new one is created


BUG: 443177
FIXED-IN: 21.08.2
parent f1366148
SPDX-License-Identifier: GPL-2.0-or-later
SPDX-FileCopyrightText: 2009 Alexander Rieder <>
SPDX-FileCopyrightText: 2018-2021 Alexander Semke <>
#include "cantor.h"
#include "lib/session.h"
......@@ -524,6 +525,10 @@ void CantorShell::closeTab(int index)
if (m_part == part)
m_part = nullptr; //the current worksheet/part is being closed, set to null
delete part;
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