mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 03:03:06 +00:00
Revert "No need (any longer?) to create a new view for lyxfiles-open"
This reverts commit 9f238ca201
.
This commit is contained in:
parent
9f238ca201
commit
90e05de396
@ -1901,6 +1901,12 @@ void GuiApplication::dispatch(FuncRequest const & cmd, DispatchResult & dr)
|
|||||||
}
|
}
|
||||||
|
|
||||||
case LFUN_LYXFILES_OPEN: {
|
case LFUN_LYXFILES_OPEN: {
|
||||||
|
// This is the actual reason for this method (#12106).
|
||||||
|
validateCurrentView();
|
||||||
|
if (!current_view_
|
||||||
|
|| (!lyxrc.open_buffers_in_tabs
|
||||||
|
&& current_view_->documentBufferView() != nullptr))
|
||||||
|
createView();
|
||||||
string arg = to_utf8(cmd.argument());
|
string arg = to_utf8(cmd.argument());
|
||||||
if (arg.empty())
|
if (arg.empty())
|
||||||
// set default
|
// set default
|
||||||
|
Loading…
Reference in New Issue
Block a user