Skip to content

Commit 5c76914

Browse files
committed
fix focus when reopening editor file from mru list (bug #67384)
* file-editor.cc (request_mru_open_file): show editor before opening the file from mru list
1 parent 618a5fd commit 5c76914

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libgui/src/m-editor/file-editor.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -659,6 +659,10 @@ file_editor::request_mru_open_file (QAction *action)
659659
{
660660
if (action)
661661
{
662+
show (); // Make sure, the editor is shown. In case the previous
663+
// session has to be restored, all previous files are
664+
// opened before the selected file from the mru list is
665+
// opended.
662666
request_open_file (action->data ().toStringList ().at (0),
663667
action->data ().toStringList ().at (1));
664668
}

0 commit comments

Comments
 (0)