summaryrefslogtreecommitdiffstats
path: root/dialog.cpp
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2012-07-17 21:44:03 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2012-07-17 21:44:03 +0200
commit5384d95c28298710fee6728bb83614a130469716 (patch)
tree75ee887fc1a5d8c3a29c321dddacb6d72159589d /dialog.cpp
parentb26534cb358803feefd03a21fc51764be541b852 (diff)
downloadalpine-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.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/dialog.cpp b/dialog.cpp
index 5d84300..fdca303 100644
--- a/dialog.cpp
+++ b/dialog.cpp
@@ -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();