mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
GuiDocument::onBufferViewChanged(): exit early if dialog is not open
This should fix the bug reported at https://marc.info/?l=lyx-users&m=171957953801548&w=2
This commit is contained in:
parent
7a79a416b8
commit
574db22025
@ -1871,6 +1871,10 @@ void GuiDocument::onClosing(int const id)
|
|||||||
|
|
||||||
void GuiDocument::onBufferViewChanged()
|
void GuiDocument::onBufferViewChanged()
|
||||||
{
|
{
|
||||||
|
if (!isVisibleView())
|
||||||
|
// dialog not open, nothing to do
|
||||||
|
return;
|
||||||
|
|
||||||
if (switchback_) {
|
if (switchback_) {
|
||||||
// We are just switching back. Nothing to do.
|
// We are just switching back. Nothing to do.
|
||||||
switchback_ = false;
|
switchback_ = false;
|
||||||
@ -1899,8 +1903,8 @@ void GuiDocument::onBufferViewChanged()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isVisibleView())
|
// reset params if we haven't bailed out above
|
||||||
initialiseParams("");
|
initialiseParams("");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user