]> git.lyx.org Git - features.git/commitdiff
Fix bug 3644: Make cancel button the default in revert dialog.
authorRichard Heck <rgheck@comcast.net>
Sat, 26 May 2007 17:42:23 +0000 (17:42 +0000)
committerRichard Heck <rgheck@comcast.net>
Sat, 26 May 2007 17:42:23 +0000 (17:42 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18527 a592a061-630c-0410-9148-cb99ea01b6c8

src/LyXFunc.cpp

index 87101319ecfadf027275304fc66d367a27ac36ba..33c724a7cdcf7fb98ba3ae36ad519e7b3facbe46 100644 (file)
@@ -910,7 +910,7 @@ void LyXFunc::dispatch(FuncRequest const & cmd)
                        docstring text = bformat(_("Any changes will be lost. Are you sure "
                                                             "you want to revert to the saved version of the document %1$s?"), file);
                        int const ret = Alert::prompt(_("Revert to saved document?"),
-                               text, 0, 1, _("&Revert"), _("&Cancel"));
+                               text, 1, 1, _("&Revert"), _("&Cancel"));
 
                        if (ret == 0)
                                reloadBuffer();