mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-20 13:23:59 +00:00
[desktop] Cancel downloading.
Signed-off-by: Viktor Govako <viktor.govako@gmail.com>
This commit is contained in:
@@ -8,7 +8,6 @@
|
|||||||
#include "base/assert.hpp"
|
#include "base/assert.hpp"
|
||||||
#include "base/logging.hpp"
|
#include "base/logging.hpp"
|
||||||
|
|
||||||
#include <algorithm>
|
|
||||||
#include <functional>
|
#include <functional>
|
||||||
#include <limits>
|
#include <limits>
|
||||||
|
|
||||||
@@ -200,7 +199,7 @@ void UpdateDialog::OnItemClick(QTreeWidgetItem * item, int column)
|
|||||||
case NodeStatus::Partly: st.DownloadNode(countryId); break;
|
case NodeStatus::Partly: st.DownloadNode(countryId); break;
|
||||||
|
|
||||||
case NodeStatus::InQueue:
|
case NodeStatus::InQueue:
|
||||||
case NodeStatus::Downloading: st.DeleteNode(countryId); break;
|
case NodeStatus::Downloading: st.CancelDownloadNode(countryId); break;
|
||||||
|
|
||||||
case NodeStatus::Applying:
|
case NodeStatus::Applying:
|
||||||
// Do nothing.
|
// Do nothing.
|
||||||
|
|||||||
Reference in New Issue
Block a user