mirror of
https://github.com/GoldenCheetah/GoldenCheetah.git
synced 2026-02-13 16:18:42 +00:00
Fix Chart Add/Edit SEGV
.. halfwitted code deleted a widget, after moving the "Use sidebar settings" checkbox to it.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user