- Fix several possible crashes when using Magnet URI (because they don't have metadata in the beginning)

This commit is contained in:
Christophe Dumez
2009-12-02 20:13:10 +00:00
parent 10ab8f107c
commit 497cb07852
3 changed files with 16 additions and 9 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()) return 0;
if(!h.is_valid() || h.is_seed() || !h.has_metadata()) return 0;
}
QComboBox* editor = new QComboBox(parent);
editor->setFocusPolicy(Qt::StrongFocus);