]> git.lyx.org Git - lyx.git/commit
Don't allow newline characters in document settings.
authorJulien Rioux <jrioux@lyx.org>
Sat, 24 Sep 2011 16:39:23 +0000 (16:39 +0000)
committerJulien Rioux <jrioux@lyx.org>
Sat, 24 Sep 2011 16:39:23 +0000 (16:39 +0000)
commitc48091f33a773732fa6c789927e5833e44108d9d
treeb85138248eb4c877379e812f0a8266abf7b9a572
parentf24b24464adfd288252463c5ba03f68d1f4cff59
Don't allow newline characters in document settings.

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 their lyx file.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39745 a592a061-630c-0410-9148-cb99ea01b6c8
src/frontends/qt4/GuiBranches.cpp
src/frontends/qt4/GuiDocument.cpp
src/frontends/qt4/GuiIndices.cpp