summaryrefslogtreecommitdiffstats
path: root/dialog.cpp
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-07-20 19:37:44 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2012-07-20 19:37:44 +0200
commitca05511e3e4c9a64c80505c4dd92d42d27e9f414 (patch)
tree5496e4e95b8346f54dc650b663d29e6af4b2cdc0 /dialog.cpp
parentea3de25ff722577efcf32f70d9bbda4b4b0ab2c0 (diff)
downloadalpine-usb-creator-master.tar.bz2
alpine-usb-creator-master.tar.xz
Add log textctrlHEADmaster
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);
+ }
}