is_new attribute added to the torrent state information
[qtrapids] / src / server / TorrentSession.cpp
index aa1f105..6158452 100644 (file)
@@ -58,6 +58,7 @@ namespace qtrapids
                 TorrentState state;
 
                 state.hash = Hash2QStr(handle.hash());
+                state.is_new = false;
                 state.state = handle.state();
                 state.progress = handle.progress() * torrent_progress_max;
                 state.down_rate = handle.downloadRate();
@@ -82,6 +83,7 @@ namespace qtrapids
             
             state.hash = hash;
             state.name = handle->name();
+            state.is_new = true;
             state.state = handle->state();
             state.progress = handle->progress() * torrent_progress_max;
             state.down_rate = handle->downloadRate();
@@ -121,6 +123,7 @@ namespace qtrapids
 
         state.hash = hash;
         state.name = handle->name();
+        state.is_new = true;
         state.state = handle->state();
         state.progress = handle->progress() * torrent_progress_max;
         state.down_rate = handle->downloadRate();