mirror of
https://github.com/transmission/transmission.git
synced 2026-05-01 14:12:40 +01:00
Simplify and speed up actions connected to file tree popup menu
This commit is contained in:
@@ -545,7 +545,7 @@ FileTreeModel::openFile (const QModelIndex& index)
|
||||
return false;
|
||||
|
||||
FileTreeItem * const item = itemFromIndex (index);
|
||||
if (item->childCount () != 0 || !item->isComplete ())
|
||||
if (item->fileIndex () < 0 || !item->isComplete ())
|
||||
return false;
|
||||
|
||||
emit openRequested (item->path ());
|
||||
|
||||
Reference in New Issue
Block a user