Mercurial > octave-nkf
comparison libgui/src/m-editor/file-editor.cc @ 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 | 46da2c323ad6 |
children | 752f6b358754 |
comparison
equal
deleted
inserted
replaced
17925:345a8027dc8b | 17926:dcf7282a0401 |
---|---|
300 if (breakpoint_marker) | 300 if (breakpoint_marker) |
301 emit fetab_do_breakpoint_marker (insert, tab, line); | 301 emit fetab_do_breakpoint_marker (insert, tab, line); |
302 } | 302 } |
303 | 303 |
304 emit fetab_set_focus (tab); | 304 emit fetab_set_focus (tab); |
305 set_focus (); | |
305 } | 306 } |
306 else | 307 else |
307 { | 308 { |
308 file_editor_tab *fileEditorTab = new file_editor_tab (); | 309 file_editor_tab *fileEditorTab = new file_editor_tab (); |
309 if (fileEditorTab) | 310 if (fileEditorTab) |
525 | 526 |
526 void | 527 void |
527 file_editor::handle_edit_file_request (const QString& file) | 528 file_editor::handle_edit_file_request (const QString& file) |
528 { | 529 { |
529 request_open_file (file); | 530 request_open_file (file); |
530 set_focus (); | |
531 } | 531 } |
532 | 532 |
533 void | 533 void |
534 file_editor::request_undo (void) | 534 file_editor::request_undo (void) |
535 { | 535 { |