diff --git a/src/frontends/qt/GuiWorkArea.cpp b/src/frontends/qt/GuiWorkArea.cpp index c8d60c2093..bebfd34a9c 100644 --- a/src/frontends/qt/GuiWorkArea.cpp +++ b/src/frontends/qt/GuiWorkArea.cpp @@ -1947,14 +1947,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