From 08f480f0637c30673588f033d0b8bbd39bdf923c Mon Sep 17 00:00:00 2001 From: Andreas Schenk <andreas_schenk@hms.harvard.edu> Date: Wed, 25 Jul 2012 10:23:07 -0400 Subject: [PATCH] set focus to python shell after insert from MIME --- modules/gui/src/python_shell/python_shell_widget.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/gui/src/python_shell/python_shell_widget.cc b/modules/gui/src/python_shell/python_shell_widget.cc index dda6c80de..8b0fd88d3 100644 --- a/modules/gui/src/python_shell/python_shell_widget.cc +++ b/modules/gui/src/python_shell/python_shell_widget.cc @@ -885,6 +885,7 @@ void PythonShellWidget::insertFromMimeData(const QMimeData * source) if(lines.size()>0){ set_block_type_(block_edit_start_,document()->lastBlock(),BLOCKTYPE_BLOCKEDIT); } + setFocus(); } GutterBlockList PythonShellWidget::GetGutterBlocks(const QRect& rect) -- GitLab