diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-07-20 19:37:44 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-07-20 19:37:44 +0200 |
commit | ca05511e3e4c9a64c80505c4dd92d42d27e9f414 (patch) | |
tree | 5496e4e95b8346f54dc650b663d29e6af4b2cdc0 /dialog.cpp | |
parent | ea3de25ff722577efcf32f70d9bbda4b4b0ab2c0 (diff) | |
download | alpine-usb-creator-ca05511e3e4c9a64c80505c4dd92d42d27e9f414.tar.bz2 alpine-usb-creator-ca05511e3e4c9a64c80505c4dd92d42d27e9f414.tar.xz |
Diffstat (limited to 'dialog.cpp')
-rw-r--r-- | dialog.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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); + } } |