]> git.lyx.org Git - lyx.git/blobdiff - src/LyXVC.cpp
Don't disable apply button if one (or more) of vertical alignment, rotation,
[lyx.git] / src / LyXVC.cpp
index 65e83a33f60450104cf2c96ca2bb1e894c6ffdda..ba7b02025528d2ad885ac00fc9de9ad408c9a29e 100644 (file)
@@ -208,7 +208,7 @@ string LyXVC::lockingToggle()
 }
 
 
-void LyXVC::revert()
+bool LyXVC::revert()
 {
        LYXERR(Debug::LYXVC, "LyXVC: revert");
 
@@ -221,8 +221,7 @@ void LyXVC::revert()
                ret = Alert::prompt(_("Revert to stored version of document?"),
                        text, 0, 1, _("&Revert"), _("&Cancel"));
 
-       if (ret == 0)
-               vcs->revert();
+       return ret == 0 && vcs->revert();
 }