From 1704c727de05dcb5eb6acba1c2cda85b5991f458 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Sat, 11 Jul 2009 17:29:52 +0000 Subject: [PATCH] * GuiBranches.cpp: avoid message after cancel. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30487 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/frontends/qt4/GuiBranches.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/frontends/qt4/GuiBranches.cpp b/src/frontends/qt4/GuiBranches.cpp index 9f73cd4c7c..b3af3ed293 100644 --- a/src/frontends/qt4/GuiBranches.cpp +++ b/src/frontends/qt4/GuiBranches.cpp @@ -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); } } -- 2.39.2