From 9555ed3c223cbc5179b85a0f44066b2b9e1def67 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Thu, 27 Aug 2009 16:47:45 +0000 Subject: [PATCH] * GuiIndices.cpp: - do not issue error if renaming has been cancelled. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31229 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiIndices.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/frontends/qt4/GuiIndices.cpp b/src/frontends/qt4/GuiIndices.cpp index a3f609bd6a..a1198a6884 100644 --- a/src/frontends/qt4/GuiIndices.cpp +++ b/src/frontends/qt4/GuiIndices.cpp @@ -210,11 +210,11 @@ void GuiIndices::on_renamePB_clicked() success = indiceslist_.rename(qstring_to_ucs4(sel_index), newname); newIndexLE->clear(); updateView(); + if (!success) + Alert::error(_("Renaming failed"), + _("The index could not be renamed. " + "Check if the new name already exists.")); } - if (!success) - Alert::error(_("Renaming failed"), - _("The index could not be renamed. " - "Check if the new name already exists.")); } } -- 2.39.2