From 7041a96fdaa86ef3f0f40185669b83743208ce0a Mon Sep 17 00:00:00 2001 From: "Vladimir Golovnev (Glassez)" Date: Sat, 20 Jun 2015 09:05:53 +0300 Subject: [PATCH] Fix torrent state sort order. --- src/core/bittorrent/torrenthandle.h | 32 +++++++++++++++-------------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/src/core/bittorrent/torrenthandle.h b/src/core/bittorrent/torrenthandle.h index deeab3ffd..eb17fa3ed 100644 --- a/src/core/bittorrent/torrenthandle.h +++ b/src/core/bittorrent/torrenthandle.h @@ -118,24 +118,26 @@ namespace BitTorrent { Unknown = -1, - Error, - - Uploading, - PausedUploading, - QueuedUploading, - StalledUploading, - CheckingUploading, - ForcedUploading, - - Allocating, - - DownloadingMetadata, + ForcedDownloading, Downloading, - PausedDownloading, - QueuedDownloading, + DownloadingMetadata, + Allocating, StalledDownloading, + + ForcedUploading, + Uploading, + StalledUploading, + + QueuedDownloading, + QueuedUploading, + + CheckingUploading, CheckingDownloading, - ForcedDownloading + + PausedDownloading, + PausedUploading, + + Error }; TorrentState(int value);