Labplot crash when deleting worksheet
Requirements
-
I searched through the issues if the issue already exists
Steps to reproduce
- Create new Project
- Create Worksheet
- Close Worksheet dock
- Delete Worksheet
Expected
No crash and worksheet preview will be cleared
Observed
Crash
Labplot Version
Debug build 2.10.0-1290-ga2ac00c86
Nov 11 2023, 15:58:13
System: Manjaro Linux
Locale: English,United States (Decimal point ',', Group separator '.'
Number settings: Decimal point ',', Group separator '.', Exponential 'e', Zero digit '0', Percent '%', Positive/Negative sign '+'/'-' (Updated on restart)
Architecture: x86_64-little_endian-lp64
Kernel: linux 5.15.133-1-MANJARO
C++ Compiler: GNU 13.2.1
C++ Compiler Flags: -fno-operator-names -fno-exceptions -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Werror=init-self -Wvla -Wdate-time -Wsuggest-override -Wlogical-op -fdiagnostics-color=always -Wall -Wextra -Wundef -Wpointer-arith -Wunreachable-code -Wunused -Wdeprecated-declarations -fno-omit-frame-pointer -fstack-protector -fexceptions -std=c++17 -O0 -Wcast-align -Wswitch-enum -fvisibility=default -pedantic -Wzero-as-null-pointer-constant