| 101 | } |
| 102 | |
| 103 | void MemoryCardConvertDialog::StartThread() |
| 104 | { |
| 105 | m_thread = std::make_unique<MemoryCardConvertWorker>(this, m_srcCardInfo.type, m_fileType, m_selectedCard.toStdString(), m_destCardName.toStdString()); |
| 106 | connect(m_thread.get(), &MemoryCardConvertWorker::statusUpdated, this, &MemoryCardConvertDialog::onStatusUpdated); |
| 107 | connect(m_thread.get(), &MemoryCardConvertWorker::progressUpdated, this, &MemoryCardConvertDialog::onProgressUpdated); |
| 108 | connect(m_thread.get(), &MemoryCardConvertWorker::threadFinished, this, &MemoryCardConvertDialog::onThreadFinished); |
| 109 | m_thread->start(); |
| 110 | UpdateEnabled(); |
| 111 | } |
| 112 | |
| 113 | void MemoryCardConvertDialog::CancelThread() |
| 114 | { |