owner_->updateLayoutChoice();
owner_->updateWindowTitle();
- if (lyx::graphics::Previews::activated() && buffer_)
+ if (buffer_ && lyx::graphics::Previews::status() != LyXRC::PREVIEW_OFF)
lyx::graphics::Previews::get().generateBufferPreviews(*buffer_);
}
inset->dispatch(cur, cmd);
// Now dispatch to the temporary cursor. If the real cursor should
- // be modified, the inset's dispatch has to do so explicitly.
+ // be modified, the inset's dispatch has to do so explicitly.
if (!res.dispatched())
res = cur.dispatch(cmd);