diff --git a/src/HomeWindow.cpp b/src/HomeWindow.cpp index 4b0fa108e..ace22d1a8 100644 --- a/src/HomeWindow.cpp +++ b/src/HomeWindow.cpp @@ -1027,6 +1027,7 @@ void GcWindowDialog::okClicked() // note that in reject they are not and will // get deleted (this has been verfied with // some debug statements in ~GcWindow). + chartLayout->removeWidget(win); // remove from layout! win->setParent(mainWindow); if (win->controls()) win->controls()->setParent(mainWindow);