From 499908ebab915a72d6f3c29e8dd0a1757118e4e9 Mon Sep 17 00:00:00 2001 From: Pavel Sanda Date: Fri, 16 Apr 2010 08:18:28 +0000 Subject: [PATCH] Add status message. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@34150 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiView.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index c6817af7e5..011d0b9d91 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -3238,8 +3238,10 @@ void GuiView::dispatch(FuncRequest const & cmd, DispatchResult & dr) } int row = doc_buffer->texrow().getRowFromIdPos(bv->cursor().paragraph().id(), bv->cursor().pos()); - if (!row || command.empty()) + if (!row || command.empty()) { + dr.setMessage(_("Couldn't proceed.")); break; + } string texrow = convert(row); command = subst(command, "$$n", texrow);