* 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
This commit is contained in:
Jürgen Spitzmüller 2009-08-27 16:47:45 +00:00
parent b5ede639d0
commit 9555ed3c22

View File

@ -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."));
}
}