commit a1aeea3f16cc786d8948f546bd98ffd976b9c162
Author: Scott Kostyshak <[email protected]>
Date:   Sun May 3 19:02:22 2015 -0400

    Rename deleteFilesOnError to removeAuxiliaryFiles
    
    The function is no longer called when there is an error because
    we keep the file around for the "Show Output Anyway" button
    (see 09700d5b).

diff --git a/src/LaTeX.cpp b/src/LaTeX.cpp
index 38a457d..a86dc92 100644
--- a/src/LaTeX.cpp
+++ b/src/LaTeX.cpp
@@ -108,7 +108,7 @@ LaTeX::LaTeX(string const & latex, OutputParams const & rp,
 }
 
 
-void LaTeX::deleteFilesOnError() const
+void LaTeX::removeAuxiliaryFiles() const
 {
        // Note that we do not always call this function when there is an error.
        // For example, if there is an error but an output file is produced we
@@ -413,7 +413,7 @@ int LaTeX::run(TeXErrors & terr)
                // incorrect PDF is not displayed, which could otherwise
                // happen if View is run again because the checksum will
                // be the same so any lingering PDF will be viewed.
-               deleteFilesOnError();
+               removeAuxiliaryFiles();
        }
 
        if (exit_code)
diff --git a/src/LaTeX.h b/src/LaTeX.h
index 6b71f0f..978e33f 100644
--- a/src/LaTeX.h
+++ b/src/LaTeX.h
@@ -209,7 +209,7 @@ private:
                       OutputParams const &);
 
        ///
-       void deleteFilesOnError() const;
+       void removeAuxiliaryFiles() const;
 
        ///
        std::string cmd;

Reply via email to