Hi,

here's a patch that makes the cancel button of version control -> register
work. If the users clicks cancel or doesn't give any desription, the file
will not be registered. There's a message that tells that to the user,
just in case anybody got used to the behaviour that it worked even
without a description.

Since this is a bugfix, it's intended for both 1.0.2 an the cvs version.
Somebody please commit it?

Changelog:

        * src/yxvc.C: edit->versioncontrol->register: cancel now
        really cancels (dnaber)

Regards
 Daniel
 
-- 
PGP Key fingerprint = 3D 98 9E D2 00 B6 E0 9D  7E B9 77 23 17 E2 11 6A
http://cgi4all.alabanza.com/glasatelier/
--- /home/dnaber/lyx10bak/lyxvc.C       Mon Mar 22 01:02:50 1999
+++ lyxvc.C     Mon Mar 22 01:07:04 1999
@@ -181,7 +181,11 @@
 
        lyxerr.debug("LyXVC: registrer", Error::LYXVC);
        LString tmp = askForText(_("LyX VC: Initial description"));
-       if (tmp.empty()) tmp = "(no initial description)";
+       if (tmp.empty()) {
+               lyxerr.debug("LyXVC: user cancelled", Error::LYXVC);
+               WriteAlert(_("Info"), _("This document has NOT been registered."));
+               return;
+       }
        LString cmd = "ci -q -u -i -t-\"";
        cmd += tmp;
        cmd += "\" ";

Reply via email to