]> git.lyx.org Git - features.git/commit
Don't allow newline characters in document settings and preferences (#5840).
authorJulien Rioux <jrioux@lyx.org>
Tue, 11 Oct 2011 17:57:33 +0000 (17:57 +0000)
committerJulien Rioux <jrioux@lyx.org>
Tue, 11 Oct 2011 17:57:33 +0000 (17:57 +0000)
commit80ba75d0b1fe8d964f1e4d24a8673bd3b7838081
tree6897e29d29acd884031f4a649092b01157987735
parent8c51cd2ad0b1b743c2c1f8f5f1b077bba105b471
Don't allow newline characters in document settings and preferences (#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 their lyx file or preferences file.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@39828 a592a061-630c-0410-9148-cb99ea01b6c8
src/frontends/qt4/GuiBranches.cpp
src/frontends/qt4/GuiDocument.cpp
src/frontends/qt4/GuiIndices.cpp
src/frontends/qt4/GuiIndices.h
src/frontends/qt4/GuiPrefs.cpp
src/frontends/qt4/Validator.cpp
src/frontends/qt4/Validator.h
src/frontends/qt4/ui/BiblioUi.ui
src/frontends/qt4/ui/IndicesUi.ui
src/frontends/qt4/ui/LanguageUi.ui
status.20x