mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-12 03:23:12 +00:00
* 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:
parent
a86fe9aabe
commit
1704c727de
@ -175,13 +175,14 @@ void GuiBranches::on_renamePB_pressed()
|
|||||||
success = branchlist_.rename(oldname, newname);
|
success = branchlist_.rename(oldname, newname);
|
||||||
newBranchLE->clear();
|
newBranchLE->clear();
|
||||||
updateView();
|
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);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user