changeset 25178:4e79e324f441 stable

Focus variable panel when Variable Editor comes from hidden state (bug #53443). * variable-editor.cc (variable_editor::edit_variable): Ensure that the Variable Editor is shown prior to doing the variable panel steps to focus.
author Daniel J Sebald <daniel.sebald@ieee.org>
date Mon, 09 Apr 2018 00:31:48 -0500
parents f7a8adb5758c
children 3ae57b161ab4
files libgui/src/variable-editor.cc
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libgui/src/variable-editor.cc	Mon Apr 09 08:58:17 2018 -0700
+++ b/libgui/src/variable-editor.cc	Mon Apr 09 00:31:48 2018 -0500
@@ -1079,6 +1079,7 @@
           }
 
         // Put existing variable in focus and raise
+        m_main->parentWidget ()->show ();
         existing_qdw->show ();
         existing_qdw->raise ();
         existing_qdw->activateWindow ();
@@ -1181,6 +1182,7 @@
     if (viewlist.size () == 1)
       m_tool_bar->setEnabled (true);
 
+    m_main->parentWidget ()->show ();
     page->show ();
     page->raise ();
     page->activateWindow ();