mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
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:
parent
99151467f3
commit
ab66fde591
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user