From 46f081d88889170716fdce26da64a784120f3698 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sat, 21 Nov 2009 12:43:08 +0000 Subject: [PATCH] - Made sure the file priorities in torrent properties don't overwrite "download first/last pieces first" option --- src/propertieswidget.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/propertieswidget.cpp b/src/propertieswidget.cpp index 0faf53ed1..394a2fde2 100644 --- a/src/propertieswidget.cpp +++ b/src/propertieswidget.cpp @@ -529,7 +529,12 @@ void PropertiesWidget::deleteSelectedUrlSeeds(){ bool PropertiesWidget::savePiecesPriorities() { qDebug("Saving pieces priorities"); std::vector priorities = PropListModel->getFilesPriorities(h.get_torrent_info().num_files()); + bool first_last_piece_first = false; + if(h.first_last_piece_first()) + first_last_piece_first = true; h.prioritize_files(priorities); + if(first_last_piece_first) + h.prioritize_first_last_piece(true); return true; }