Avoid crash when PlottingDlg is deleted
Found what to remove to avoid crash