diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-07-18 22:11:55 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-07-18 22:13:33 +0200 |
commit | 711f6fb1caa0861d1b3504d53c7f44c0582cbc97 (patch) | |
tree | ba04843a2c5683b8c60544ca3bc6d0bbdeed5598 /dialog.cpp | |
parent | 5384d95c28298710fee6728bb83614a130469716 (diff) | |
download | alpine-usb-creator-711f6fb1caa0861d1b3504d53c7f44c0582cbc97.tar.bz2 alpine-usb-creator-711f6fb1caa0861d1b3504d53c7f44c0582cbc97.tar.xz |
Extract iso with libuniso
Diffstat (limited to 'dialog.cpp')
-rw-r--r-- | dialog.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -84,7 +84,9 @@ void Dialog::OnTargetChange(wxCommandEvent &event) UpdateStartButton(); } -void Dialog::SetProgress(int value) +void Dialog::SetProgress(size_t current, size_t total, const char *filename ) { - m_gauge->SetValue(value); + if (m_gauge->GetRange() != total) + m_gauge->SetRange(total); + m_gauge->SetValue(current); } |