summaryrefslogtreecommitdiff
path: root/ui/batch_status_handler.cpp
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:14:37 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:14:37 +0200
commit8bf668665b107469086f16cb8ad23e47d479d2b4 (patch)
tree66a91ef06a8caa7cd6819dcbe1860693d3eda8d5 /ui/batch_status_handler.cpp
parent3.21 (diff)
downloadFreeFileSync-8bf668665b107469086f16cb8ad23e47d479d2b4.tar.gz
FreeFileSync-8bf668665b107469086f16cb8ad23e47d479d2b4.tar.bz2
FreeFileSync-8bf668665b107469086f16cb8ad23e47d479d2b4.zip
4.0
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