]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiBranches.cpp
Account for old versions of Pygments
[lyx.git] / src / frontends / qt4 / GuiBranches.cpp
index 9445a1656770efe9369e2b09906c809717cfac54..6910c5cadd231791e5bd5a69f5c6ec0b5480e9e7 100644 (file)
@@ -206,10 +206,10 @@ void GuiBranches::on_renamePB_pressed()
        if (!sel_branch.isEmpty()) {
                docstring newname;
                docstring const oldname = qstring_to_ucs4(sel_branch);
-               bool success = false;
                if (Alert::askForText(newname, _("Enter new branch name"), oldname)) {
                        if (newname.empty() || oldname == newname)
                                return;
+                       bool success = false;
                        if (branchlist_.find(newname)) {
                                docstring text = support::bformat(
                                        _("A branch with the name \"%1$s\" already exists.\n"