mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Only issue currentWorkareaChanged() if the work area really changed.
(this function can be called repeatedly while the work area doesn't change any further)
This commit is contained in:
parent
026c4bd726
commit
fd78a25a7c
@ -1947,12 +1947,15 @@ void TabWorkArea::on_currentTabChanged(int i)
|
|||||||
if (i == -1)
|
if (i == -1)
|
||||||
return;
|
return;
|
||||||
GuiWorkArea * wa = workArea(i);
|
GuiWorkArea * wa = workArea(i);
|
||||||
|
// is it really a different work area?
|
||||||
|
bool real_change = wa == currentWorkArea();
|
||||||
LASSERT(wa, return);
|
LASSERT(wa, return);
|
||||||
wa->setUpdatesEnabled(true);
|
wa->setUpdatesEnabled(true);
|
||||||
wa->scheduleRedraw(true);
|
wa->scheduleRedraw(true);
|
||||||
wa->setFocus();
|
wa->setFocus();
|
||||||
///
|
///
|
||||||
currentWorkAreaChanged(wa);
|
if (real_change)
|
||||||
|
currentWorkAreaChanged(wa);
|
||||||
|
|
||||||
LYXERR(Debug::GUI, "currentTabChanged " << i
|
LYXERR(Debug::GUI, "currentTabChanged " << i
|
||||||
<< " File: " << wa->bufferView().buffer().absFileName());
|
<< " File: " << wa->bufferView().buffer().absFileName());
|
||||||
|
Loading…
Reference in New Issue
Block a user