]> git.lyx.org Git - lyx.git/commitdiff
Please Juergen wrt #5307
authorPavel Sanda <sanda@lyx.org>
Fri, 22 May 2009 21:35:18 +0000 (21:35 +0000)
committerPavel Sanda <sanda@lyx.org>
Fri, 22 May 2009 21:35:18 +0000 (21:35 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@29791 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiPrefs.cpp
src/frontends/qt4/GuiPrefs.h

index 6312d796f3bfcf0a1fec92cfa939003ec2b564de..0b19e260200e6908eadba83d515997518cb36504 100644 (file)
@@ -527,11 +527,17 @@ PrefCompletion::PrefCompletion(GuiPreferences * form)
 
 void PrefCompletion::on_inlineTextCB_clicked()
 {
-       on_popupTextCB_clicked();
+       enableCB();
 }
 
 
 void PrefCompletion::on_popupTextCB_clicked()
+{
+       enableCB();
+}
+
+
+void PrefCompletion::enableCB()
 {
        cursorTextCB->setEnabled(
                popupTextCB->isChecked() || inlineTextCB->isChecked());
@@ -564,7 +570,7 @@ void PrefCompletion::update(LyXRC const & rc)
        popupTextCB->setChecked(rc.completion_popup_text);
        cursorTextCB->setChecked(rc.completion_cursor_text);
        popupAfterCompleteCB->setChecked(rc.completion_popup_after_complete);
-        on_popupTextCB_clicked();
+        enableCB();
 }
 
 
index cdc2d2c2483a191fe40c1dd661b0e6b2156c32a0..77738106b5ee83433ae654cdea3b4eaca0cae341 100644 (file)
@@ -210,6 +210,7 @@ public:
 
        virtual void apply(LyXRC & rc) const;
        virtual void update(LyXRC const & rc);
+       virtual void enableCB();
 private Q_SLOTS:
        void on_popupTextCB_clicked();
        void on_inlineTextCB_clicked();