]> git.lyx.org Git - lyx.git/commitdiff
rc.preview and rc.display_graphics are completely unrelated (bug 7562)
authorJuergen Spitzmueller <spitz@lyx.org>
Mon, 17 Sep 2012 09:36:29 +0000 (11:36 +0200)
committerJuergen Spitzmueller <spitz@lyx.org>
Mon, 17 Sep 2012 09:36:29 +0000 (11:36 +0200)
src/frontends/qt4/GuiPrefs.cpp
src/frontends/qt4/GuiPrefs.h

index 5fa14c715085b718c473ededc656f183fda286a5..d3770847504143b75319a641604a1cf9d5caf69c 100644 (file)
@@ -1243,13 +1243,6 @@ void PrefDisplay::on_instantPreviewCO_currentIndexChanged(int index)
 }
 
 
-void PrefDisplay::on_displayGraphicsCB_toggled(bool on)
-{
-       instantPreviewCO->setEnabled(on);
-       previewSizeSB->setEnabled(on && instantPreviewCO->currentIndex() > 0);
-}
-
-
 void PrefDisplay::apply(LyXRC & rc) const
 {
        switch (instantPreviewCO->currentIndex()) {
@@ -1293,7 +1286,6 @@ void PrefDisplay::update(LyXRC const & rc)
        }
 
        displayGraphicsCB->setChecked(rc.display_graphics);
-       instantPreviewCO->setEnabled(rc.display_graphics);
        previewSizeSB->setValue(rc.preview_scale_factor);
        paragraphMarkerCB->setChecked(rc.paragraph_markers);
        previewSizeSB->setEnabled(
index 8d9028042d1f6379d91ce5c3fa1dd257d8ac5ee7..9cb96bca5f6a7235bedb93bd4cbc2b2ea2757ea5 100644 (file)
@@ -276,7 +276,6 @@ public:
 
 private Q_SLOTS:
        void on_instantPreviewCO_currentIndexChanged(int);
-       void on_displayGraphicsCB_toggled(bool);
 };