check for isNull

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@5811 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2002-12-12 17:12:20 +00:00
parent 99151467f3
commit ab66fde591
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2002-12-12 John Levon <levon@movementarian.org>
* QLyXKeySym.C: check for isNull(). It's needed by
Kornel, dunno why
2002-12-12 John Levon <levon@movementarian.org>
* ui/QSpellcheckerDialog.ui: make double click replace word

View File

@ -33,6 +33,11 @@ QLyXKeySym::QLyXKeySym()
void QLyXKeySym::set(QKeyEvent * ev)
{
key_ = ev->key();
if (ev->text().isNull()) {
lyxerr[Debug::KEY] << "keyevent has isNull() text !" << endl;
text_ = "";
return;
}
text_ = ev->text();
lyxerr[Debug::KEY] << "Setting key to " << key_ << ", " << text_.latin1() << endl;
}