mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Amend fd78a25a7c
This way, it is a bit more plausible what we're doing
(cherry picked from commit c394a1ccf9
)
This commit is contained in:
parent
f9dccb9afb
commit
e5030ad915
@ -1950,14 +1950,13 @@ void TabWorkArea::on_currentTabChanged(int i)
|
||||
if (i == -1)
|
||||
return;
|
||||
GuiWorkArea * wa = workArea(i);
|
||||
// is it really a different work area?
|
||||
bool real_change = wa == currentWorkArea();
|
||||
LASSERT(wa, return);
|
||||
wa->setUpdatesEnabled(true);
|
||||
wa->scheduleRedraw(true);
|
||||
wa->setFocus();
|
||||
///
|
||||
if (real_change)
|
||||
// if the work area did change,
|
||||
// inform the view and dialogs
|
||||
if (wa == currentWorkArea())
|
||||
currentWorkAreaChanged(wa);
|
||||
|
||||
LYXERR(Debug::GUI, "currentTabChanged " << i
|
||||
|
Loading…
Reference in New Issue
Block a user