]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiKeySymbol.cpp
* fix spelling in comments to please John.
[lyx.git] / src / frontends / qt4 / GuiKeySymbol.cpp
index 0770010f165d0a39735fc75fc348d70d5d2a227e..e5d3d796d96133e6329c32a3d39208da9837177b 100644 (file)
@@ -638,7 +638,7 @@ void KeySymbol::init(string const & symbolname)
 
 bool KeySymbol::isOK() const
 {
-       bool const ok = !(text_.empty() && key_ == Qt::Key_unknown);
+       bool const ok = !(text_.empty() && qkey_to_string(key_).empty());
        LYXERR(Debug::KEY, "isOK is " << ok);
        return ok;
 }