summaryrefslogtreecommitdiffstats
path: root/dialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dialog.cpp')
-rw-r--r--dialog.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/dialog.cpp b/dialog.cpp
index cc46719..634c9b0 100644
--- a/dialog.cpp
+++ b/dialog.cpp
@@ -12,6 +12,8 @@
Dialog::Dialog(wxWindow *parent)
: DialogUI(parent)
{
+ m_log = new wxLogTextCtrl(m_textctrl);
+ wxLog::SetActiveTarget(m_log);
RefreshDrives();
}
@@ -88,5 +90,10 @@ void Dialog::SetProgress(size_t current, size_t total, const char *filename )
{
if (m_gauge->GetRange() != total)
m_gauge->SetRange(total);
- m_gauge->SetValue(current);
+ if (m_gauge->GetValue() != current)
+ m_gauge->SetValue(current);
+ if (filename != NULL) {
+ wxString msg = wxString::FromAscii(filename);
+ wxLogMessage(msg);
+ }
}