]> git.lyx.org Git - features.git/commit
Problem: When canceling the preferences dialog after changing a color then the icon...
authorBernhard Roider <bernhard.roider@sonnenkinder.org>
Wed, 9 May 2007 20:16:31 +0000 (20:16 +0000)
committerBernhard Roider <bernhard.roider@sonnenkinder.org>
Wed, 9 May 2007 20:16:31 +0000 (20:16 +0000)
commitb5c5c1efe69e04b0913587b6b6b120c984977d4a
treebfa2d088f18d4e369b98dd154aa0d0b35dcfbac0
parentc0e972978b01c4c3c9e94a67940ccfd3593f6cdd
Problem: When canceling the preferences dialog after changing a color then the icon in the colors list is not reverted after reopening the dialog. Moreover when pressing apply later then the color is really changed.

Solution: Move the color initialization from the constructor to the update() method. I've read the mail from Richard (referenced in the source code) concerning this, but i don't understand why we should not move parts of the initialization the constructor does into the update method. With this changes the hack for fixing http://bugzilla.lyx.org/show_bug.cgi?id=3109 is not needed.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18249 a592a061-630c-0410-9148-cb99ea01b6c8
src/frontends/qt4/QPrefs.cpp
src/frontends/qt4/QPrefs.h