Skip to content

Commit 2db4bd5

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 9c96772 commit 2db4bd5

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
@@ -658,6 +658,10 @@ file_editor::request_mru_open_file (QAction *action)
658658
{
659659
if (action)
660660
{
661+
show (); // Make sure, the editor is shown. In case the previous
662+
// session has to be restored, all previous files are
663+
// opened before the selected file from the mru list is
664+
// opended.
661665
request_open_file (action->data ().toStringList ().at (0),
662666
action->data ().toStringList ().at (1));
663667
}

0 commit comments

Comments
 (0)