Fix signal order (#12712)

This commit is contained in:
Juergen Spitzmueller 2023-03-18 15:57:25 +01:00
parent 1d0ab7a274
commit 5ad6cbb1d8

View File

@ -1015,11 +1015,11 @@ void GuiView::saveUISettings() const
void GuiView::setCurrentZoom(const int v)
{
Q_EMIT currentZoomChanged(v);
lyxrc.currentZoom = v;
zoom_value_->setText(toqstr(bformat(_("[[ZOOM]]%1$d%"), v)));
zoom_in_->setEnabled(currentBufferView() && v < zoom_slider_->maximum());
zoom_out_->setEnabled(currentBufferView() && v > zoom_slider_->minimum());
Q_EMIT currentZoomChanged(v);
}