diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-07-17 21:44:03 +0200 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-07-17 21:44:03 +0200 |
commit | 5384d95c28298710fee6728bb83614a130469716 (patch) | |
tree | 75ee887fc1a5d8c3a29c321dddacb6d72159589d /dialog.cpp | |
parent | b26534cb358803feefd03a21fc51764be541b852 (diff) | |
download | alpine-usb-creator-5384d95c28298710fee6728bb83614a130469716.tar.bz2 alpine-usb-creator-5384d95c28298710fee6728bb83614a130469716.tar.xz |
Pass over source and target to creator thread
Diffstat (limited to 'dialog.cpp')
-rw-r--r-- | dialog.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -32,7 +32,7 @@ void Dialog::RefreshDrives(void) #else m_target->Clear(); - m_target->Append(wxT("~/tmp/alpine")); + m_target->Append(wxT("/tmp/alpine")); #endif if (!m_target->IsEmpty()) m_target->SetSelection(0); @@ -46,7 +46,10 @@ void Dialog::OnRefreshDrives(wxCommandEvent &event) void Dialog::OnStartButton(wxCommandEvent &event) { - CreatorThread *thread = new CreatorThread(this); + wxString isopath(m_iso_picker->GetPath()); + wxString target(m_target->GetString(m_target->GetSelection())); + + CreatorThread *thread = new CreatorThread(this, isopath, target); if (thread->Create() == wxTHREAD_NO_ERROR) { m_start_button->Disable(); m_target->Disable(); |