changeset 24994:4fbe69d150aa

Enable delete-on-close behavior of variable editor panels (bug #53467) * variable-editor.cc (variable_dock_widget::variable_dock_widget): Drop the preprocessor conditional around the QA_DeleteOnClose setting.
author Daniel J Sebald <daniel.sebald@ieee.org>
date Mon, 26 Mar 2018 13:32:36 -0500
parents 91fea65408d5
children 6932ced4b2e2
files libgui/src/variable-editor.cc
diffstat 1 files changed, 0 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/libgui/src/variable-editor.cc	Mon Mar 26 13:20:20 2018 -0400
+++ b/libgui/src/variable-editor.cc	Mon Mar 26 13:32:36 2018 -0500
@@ -88,14 +88,7 @@
     : label_dock_widget (p)
   {
     setFocusPolicy (Qt::StrongFocus);
-    // This controls whether the variable_dock_widgets are deleted
-    // or hidden when clicking the upper right X icon.  (Look for
-    // the checkmark of the variable_editor's context menu.)
-    // Could make this an option, or perhaps add a drop-down menu
-    // in place of X "close" icon.
-#if 0
     setAttribute (Qt::WA_DeleteOnClose);
-#endif
 
     connect (m_dock_action, SIGNAL (triggered (bool)),
              this, SLOT (change_floating (bool)));