Fix Chart Add/Edit SEGV

.. halfwitted code deleted a widget, after moving the
   "Use sidebar settings" checkbox to it.
This commit is contained in:
Mark Liversedge
2015-07-27 21:07:39 +01:00
parent 5292ed06c1
commit 7b15ae8beb

View File

@@ -1166,9 +1166,10 @@ LTMTool::hideBasic()
{
// first make sure use sidebar is false
usePreset->setChecked(false);
if (basicsettings) {
delete basicsettings;
basicsettings=NULL;
if (tabs->count() == 3) {
tabs->removeTab(0);
basicsettings->hide(); // it doesn't get deleted
// resize etc
tabs->updateGeometry();