diff --git a/src/Gui/Widgets.cpp b/src/Gui/Widgets.cpp index db3dfd1233..c5940191bb 100644 --- a/src/Gui/Widgets.cpp +++ b/src/Gui/Widgets.cpp @@ -382,6 +382,11 @@ bool AccelLineEdit::isNone() const */ void AccelLineEdit::keyPressEvent (QKeyEvent * e) { + if (isReadOnly()) { + QLineEdit::keyPressEvent(e); + return; + } + QString txtLine = text(); int key = e->key();