]> git.lyx.org Git - features.git/commit
Don't allow newline characters in preference (#5840).
authorJulien Rioux <jrioux@lyx.org>
Mon, 12 Sep 2011 14:22:05 +0000 (14:22 +0000)
committerJulien Rioux <jrioux@lyx.org>
Mon, 12 Sep 2011 14:22:05 +0000 (14:22 +0000)
commit82edf5907a9ce0c1254549eee484616957a36e7b
treede0a382130a165819393ce39ab7b42a18eb98a2e
parentbab818a784243505e2304ef8d23252a71baa9c5b
Don't allow newline characters in preference (#5840).

    Set a validator on QLineEdit widgets. The validator removes any
    \n and \r characters, thus preventing users from copy-pasting
    newline characters into these fields, and subsequently saving
    them, inadvertantly, to the preference file.

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