]> git.lyx.org Git - lyx.git/blobdiff - src/LyXVC.cpp
Fix copy&paste bug.
[lyx.git] / src / LyXVC.cpp
index 8d72962ed47923b3d3796a971887519a7154f4e0..264bb6f622effaa7aea880d3de8272ba9786c6c7 100644 (file)
@@ -21,7 +21,7 @@
 #include "Buffer.h"
 #include "gettext.h"
 
-#include "frontends/Alert.h"
+#include "frontends/alert.h"
 
 #include "support/filetools.h"
 #include "support/lyxlib.h"
@@ -31,7 +31,6 @@ namespace lyx {
 
 using support::bformat;
 using support::FileName;
-using support::isFileReadable;
 using support::makeAbsPath;
 using support::makeDisplayPath;
 using support::tempName;
@@ -96,7 +95,7 @@ void LyXVC::registrer()
        FileName const filename(owner_->fileName());
 
        // there must be a file to save
-       if (!isFileReadable(filename)) {
+       if (!filename.isFileReadable()) {
                Alert::error(_("Document not saved"),
                             _("You must save the document "
                                            "before it can be registered."));
@@ -107,7 +106,7 @@ void LyXVC::registrer()
        if (!vcs) {
                FileName const cvs_entries(makeAbsPath("CVS/Entries"));
 
-               if (isFileReadable(cvs_entries)) {
+               if (cvs_entries.isFileReadable()) {
                        LYXERR(Debug::LYXVC)
                                << "LyXVC: registering "
                                << to_utf8(makeDisplayPath(filename.absFilename()))