]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiCommandBuffer.cpp
do what the FIXME suggested
[lyx.git] / src / frontends / qt4 / GuiCommandBuffer.cpp
index 4a7e91adc2c9c580f9e6df87424f73b8840937e5..6958e45469e3f161d971edcd626d27398965555b 100644 (file)
@@ -128,10 +128,11 @@ void GuiCommandBuffer::cancel()
 
 void GuiCommandBuffer::dispatch()
 {
-       dispatch(fromqstr(edit_->text()));
+       QString cmd = edit_->text();
        view_->setFocus();
        edit_->setText(QString());
        edit_->clearFocus();
+       dispatch(fromqstr(cmd));
 }