diff libgui/src/documentation-dock-widget.cc @ 17030:05b8ad3b7d12

Display/focus documentation browser when running command doc 'xxxxx' * libgui/src/documentation-dock-widget.cc (documentation_dock_widget::showDoc): display documentation browser when when loading a reference. * libgui/src/qtinfo/webinfo.cc (webinfo::load_ref): Set focus to browser window when load_ref called.
author John Donoghue <john.donoghue@ieee.org>
date Sun, 21 Jul 2013 17:26:39 -0400
parents 359c5ca795cd
children d63878346099
line wrap: on
line diff
--- a/libgui/src/documentation-dock-widget.cc	Sat Jul 20 22:13:51 2013 -0400
+++ b/libgui/src/documentation-dock-widget.cc	Sun Jul 21 17:26:39 2013 -0400
@@ -54,5 +54,12 @@
 void
 documentation_dock_widget::showDoc (const QString &name)
 {
+  // show the doc pane
+  if (!isVisible ())
+    setVisible (true);
+  setFocus ();
+  raise ();
+
   _webinfo->load_ref (name);
+
 }