changeset 17926:dcf7282a0401

fix some focus issues with the editor * focus-editor.cc (handle_edit_file_request): do not set focus here since the custom editor might have been called here; (request_open_file): set focus if the file to open already is opened
author Torsten <ttl@justmail.de>
date Thu, 14 Nov 2013 18:38:59 +0100
parents 345a8027dc8b
children c17f06b50ac5
files libgui/src/m-editor/file-editor.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libgui/src/m-editor/file-editor.cc	Thu Nov 14 10:09:31 2013 -0500
+++ b/libgui/src/m-editor/file-editor.cc	Thu Nov 14 18:38:59 2013 +0100
@@ -302,6 +302,7 @@
             }
 
           emit fetab_set_focus (tab);
+          set_focus ();
         }
       else
         {
@@ -527,7 +528,6 @@
 file_editor::handle_edit_file_request (const QString& file)
 {
   request_open_file (file);
-  set_focus ();
 }
 
 void