# HG changeset patch # User John Donoghue # Date 1374441999 14400 # Node ID 05b8ad3b7d12aeac7ee8227ead5530b1bfe103e1 # Parent 359c5ca795cd15b80302391a64608deec640cdba 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. diff -r 359c5ca795cd -r 05b8ad3b7d12 libgui/src/documentation-dock-widget.cc --- 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); + } diff -r 359c5ca795cd -r 05b8ad3b7d12 libgui/src/qtinfo/webinfo.cc --- a/libgui/src/qtinfo/webinfo.cc Sat Jul 20 22:13:51 2013 -0400 +++ b/libgui/src/qtinfo/webinfo.cc Sun Jul 21 17:26:39 2013 -0400 @@ -203,6 +203,9 @@ // not found load_node("Top"); } + + if (_text_browser) + _text_browser->setFocus(); } void