]> git.lyx.org Git - features.git/blobdiff - src/LyXVC.cpp
Fix http://bugzilla.lyx.org/show_bug.cgi?id=5430 .
[features.git] / src / LyXVC.cpp
index 7f5beea70469da18e83b83497f21adf1b002ede0..770706c3e5eca8aa816b75c725eccdb943edd9d0 100644 (file)
@@ -132,12 +132,12 @@ void LyXVC::registrer()
        docstring response;
        bool ok = Alert::askForText(response, _("LyX VC: Initial description"),
                        _("(no initial description)"));
-       if (!ok || response.empty()) {
-               // should we insist on checking response.empty()?
+       if (!ok) {
                LYXERR(Debug::LYXVC, "LyXVC: user cancelled");
                return;
        }
-
+       if (response.empty())
+               response = _("(no initial description)");
        vcs->registrer(to_utf8(response));
 }