summaryrefslogtreecommitdiff
path: root/ui/batch_status_handler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ui/batch_status_handler.cpp')
-rw-r--r--ui/batch_status_handler.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/ui/batch_status_handler.cpp b/ui/batch_status_handler.cpp
index 772feaf4..84168014 100644
--- a/ui/batch_status_handler.cpp
+++ b/ui/batch_status_handler.cpp
@@ -54,7 +54,7 @@ void removeFileNoThrow(const Zstring& filename)
{
zen::removeFile(filename);
}
- catch(...) {}
+ catch (...) {}
}
}
@@ -62,7 +62,7 @@ void removeFileNoThrow(const Zstring& filename)
class LogFile
{
public:
- LogFile(const wxString& logfileDirectory, const wxString& jobName) : jobName_(jobName) //throw (FileError&)
+ LogFile(const wxString& logfileDirectory, const wxString& jobName) : jobName_(jobName) //throw FileError
{
logfileName = findUniqueLogname(logfileDirectory, jobName);
@@ -298,10 +298,16 @@ void BatchStatusHandler::updateProcessedData(int objectsProcessed, zen::Int64 da
}
+void BatchStatusHandler::reportStatus(const wxString& text)
+{
+ syncStatusFrame.setStatusText_NoUpdate(text);
+ requestUiRefresh(); //throw AbortThisProcess
+}
+
+
void BatchStatusHandler::reportInfo(const wxString& text)
{
- if (currentProcess == StatusHandler::PROCESS_SYNCHRONIZING) //write file transfer information to log
- errorLog.logMsg(text, TYPE_INFO); //avoid spamming with file copy info: visually identifying warning messages has priority! however when saving to a log file wee need this info
+ errorLog.logMsg(text, TYPE_INFO);
syncStatusFrame.setStatusText_NoUpdate(text);
requestUiRefresh(); //throw AbortThisProcess
bgstack15