mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 19:25:39 +00:00
On Mac clicking on a LyX file in Finder might open another GuiView which is asked to open the file. The reload logic though closes this and the dispatcher will run into a current_view_ which is null (until the other GuiView gets the focus again). git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@27228 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
4040382f46
commit
97740523fe
@ -848,7 +848,7 @@ bool GuiApplication::dispatch(FuncRequest const & cmd)
|
||||
crc = for_each(fname.begin(), fname.end(), crc);
|
||||
createView(crc.checksum());
|
||||
current_view_->openDocument(fname);
|
||||
if (!current_view_->buffer())
|
||||
if (current_view_ && !current_view_->buffer())
|
||||
current_view_->close();
|
||||
} else
|
||||
current_view_->openDocument(to_utf8(cmd.argument()));
|
||||
|
Loading…
Reference in New Issue
Block a user