* GuiBranches.cpp: avoid message after cancel.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30487 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2009-07-11 17:29:52 +00:00
parent a86fe9aabe
commit 1704c727de

View File

@ -175,13 +175,14 @@ void GuiBranches::on_renamePB_pressed()
success = branchlist_.rename(oldname, newname);
newBranchLE->clear();
updateView();
if (!success)
Alert::error(_("Renaming failed"),
_("The branch could not be renamed."));
else
// emit signal
renameBranches(oldname, newname);
}
if (!success)
Alert::error(_("Renaming failed"),
_("The branch could not be renamed."));
else
// emit signal
renameBranches(oldname, newname);
}
}