Open new document; LyX > Preferences; change
anything; click on "Save" button --> Crash. Backtrace is below.
Once again, this does not happen when no document is open.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31486
a592a061-630c-0410-9148-
cb99ea01b6c8
QHash<int, GuiView *>::iterator it;
for (it = d->views_.begin(); it != d->views_.end(); ++it) {
GuiView * gv = *it;
+ setCurrentView(gv);
gv->setLayoutDirection(layoutDirection());
gv->resetDialogs();
}
QString label = toqstr(b->fileName().displayName(20));
if (!b->isClean())
label += "*";
- bool const shown = guiApp->currentView()->workArea(*b);
+ bool const shown = guiApp->currentView()
+ ? guiApp->currentView()->workArea(*b) : false;
int ii = shown ? vis : invis;
if (ii < 10)
label = QString::number(ii) + ". " + label + '|' + QString::number(ii);