]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiCommandBuffer.cpp
On Linux show in crash message box the backtrace
[lyx.git] / src / frontends / qt4 / GuiCommandBuffer.cpp
index 176725016654e600d9fce28b649c221ad7d84795..f3179f0e84694f8ab145d16bd8af028026915ea5 100644 (file)
@@ -18,7 +18,6 @@
 #include "GuiCommandEdit.h"
 #include "GuiView.h"
 #include "qt_helpers.h"
-#include "Validator.h"
 
 #include "BufferView.h"
 #include "Cursor.h"
@@ -108,7 +107,6 @@ GuiCommandBuffer::GuiCommandBuffer(GuiView * view)
        edit_ = new GuiCommandEdit(this);
        edit_->setMinimumSize(edit_->sizeHint());
        edit_->setFocusPolicy(Qt::ClickFocus);
-       edit_->setValidator(new NoNewLineValidator(edit_));
 
        connect(edit_, SIGNAL(escapePressed()), this, SLOT(cancel()));
        connect(edit_, SIGNAL(returnPressed()), this, SLOT(dispatch()));
@@ -149,7 +147,7 @@ void GuiCommandBuffer::cancel()
 
 void GuiCommandBuffer::dispatch()
 {
-       QString cmd = edit_->text();
+       QString const cmd = edit_->text();
        view_->setFocus();
        edit_->setText(QString());
        edit_->clearFocus();