Add more vector length checks

This commit is contained in:
Christophe Dumez 2012-04-08 11:17:32 +03:00
parent 7bd4a1b849
commit a940917144
4 changed files with 11 additions and 8 deletions

View file

@ -652,7 +652,7 @@ void PropertiesWidget::deleteSelectedUrlSeeds() {
bool PropertiesWidget::applyPriorities() {
qDebug("Saving files priorities");
const std::vector<int> priorities = PropListModel->model()->getFilesPriorities(h.get_torrent_info().num_files());
const std::vector<int> priorities = PropListModel->model()->getFilesPriorities();
// Save first/last piece first option state
bool first_last_piece_first = h.first_last_piece_first();
// Prioritize the files