http://bugzilla.lyx.org/show_bug.cgi?id=4123
* GuiView:
- closeEvent(): set quitting=true only when quitting. I don't know why and how this was changed but it was clearly wrong.
- update_view_state_qt(): only update when focus is in. Make sure this is the current LyXView.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19643
a592a061-630c-0410-9148-
cb99ea01b6c8
theApp()->gui().unregisterView(id());
if (!theApp()->gui().viewIds().empty()) {
- quitting = true;
// Just close the window and do nothing else if this is not the
// last window.
close_event->accept();
return;
}
+ quitting = true;
+
if (view()->buffer()) {
// save cursor position for opened files to .lyx/session
// only bottom (whole doc) level pit and pos is saved.
void GuiView::update_view_state_qt()
{
+ if (!hasFocus())
+ return;
+ theLyXFunc().setLyXView(this);
statusBar()->showMessage(toqstr(theLyXFunc().viewStatusMessage()));
statusbar_timer_.stop();
}