- Fix file prioritizing behavior. Priorities cannot be changed if the torrent has not metadata, is not valid or is a seed.

* Use the same behavior in Web UI and Regular UI
This commit is contained in:
Christophe Dumez
2009-12-06 15:03:49 +00:00
parent df03b042d6
commit 269bbdf01d
2 changed files with 2 additions and 2 deletions

View File

@@ -122,7 +122,7 @@ public:
if(index.column() != PRIORITY) return 0;
if(properties) {
QTorrentHandle h = properties->getCurrentTorrent();
if(!h.is_valid() || h.is_seed() || !h.has_metadata()) return 0;
if(!h.is_valid() || h.get_torrent_handle().is_seed() || !h.has_metadata()) return 0;
}
QComboBox* editor = new QComboBox(parent);
editor->setFocusPolicy(Qt::StrongFocus);