]> git.lyx.org Git - features.git/commitdiff
No need (any longer?) to create a new view for lyxfiles-open
authorJuergen Spitzmueller <spitz@lyx.org>
Fri, 8 Sep 2023 14:16:01 +0000 (16:16 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Fri, 8 Sep 2023 14:16:01 +0000 (16:16 +0200)
src/frontends/qt/GuiApplication.cpp

index 57eaaf65587d51bcc1b881f6b60bdf5fd60c87ef..31cdcb7c29071f7947d78200d48a7b690307d37e 100644 (file)
@@ -1901,12 +1901,6 @@ void GuiApplication::dispatch(FuncRequest const & cmd, DispatchResult & dr)
        }
 
        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());
                if (arg.empty())
                        // set default