]> git.lyx.org Git - features.git/commitdiff
Fix signal order (#12712)
authorJuergen Spitzmueller <spitz@lyx.org>
Sat, 18 Mar 2023 14:57:25 +0000 (15:57 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Sat, 18 Mar 2023 14:58:04 +0000 (15:58 +0100)
src/frontends/qt/GuiView.cpp

index f7222e402ecdf30db9cc484da1351414498691bd..9a353117a364e55f14b2b906a019771ae6d81e3f 100644 (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);
 }