diff options
| author | Techjar <tecknojar@gmail.com> | 2019-03-30 06:20:24 -0400 |
|---|---|---|
| committer | Techjar <tecknojar@gmail.com> | 2019-04-07 06:22:33 -0400 |
| commit | c90df946bae7fb6d11e61efbf57e2da0af848c11 (patch) | |
| tree | 6eaa6136dcccc3c60e4f2c810f2dd086848c71c6 /Source/Core/DolphinQt/NetPlay/NetPlayDialog.cpp | |
| parent | 78707040873aec639c0e3e1d7c4c310003765d67 (diff) | |
NetPlay: Add cancel button for chunked data transfers
Diffstat (limited to 'Source/Core/DolphinQt/NetPlay/NetPlayDialog.cpp')
| -rw-r--r-- | Source/Core/DolphinQt/NetPlay/NetPlayDialog.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/DolphinQt/NetPlay/NetPlayDialog.cpp b/Source/Core/DolphinQt/NetPlay/NetPlayDialog.cpp index 814aafdf39..08d025b285 100644 --- a/Source/Core/DolphinQt/NetPlay/NetPlayDialog.cpp +++ b/Source/Core/DolphinQt/NetPlay/NetPlayDialog.cpp @@ -1096,7 +1096,7 @@ void NetPlayDialog::ShowChunkedProgressDialog(const std::string& title, const u6 { QueueOnObject(this, [this, title, data_size, players] { if (m_chunked_progress_dialog->isVisible()) - m_chunked_progress_dialog->close(); + m_chunked_progress_dialog->done(QDialog::Accepted); m_chunked_progress_dialog->show(QString::fromStdString(title), data_size, players); }); @@ -1104,7 +1104,7 @@ void NetPlayDialog::ShowChunkedProgressDialog(const std::string& title, const u6 void NetPlayDialog::HideChunkedProgressDialog() { - QueueOnObject(this, [this] { m_chunked_progress_dialog->close(); }); + QueueOnObject(this, [this] { m_chunked_progress_dialog->done(QDialog::Accepted); }); } void NetPlayDialog::SetChunkedProgress(const int pid, const u64 progress) |
