From a5f71a286dcee4f509fd2d627cf1cb082c8f6a4b Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 13 Jun 2014 17:47:03 +0200 Subject: [PATCH] Don't make download items selectable --- qutebrowser/models/downloadmodel.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qutebrowser/models/downloadmodel.py b/qutebrowser/models/downloadmodel.py index cc2c15f77..df58fb34d 100644 --- a/qutebrowser/models/downloadmodel.py +++ b/qutebrowser/models/downloadmodel.py @@ -84,6 +84,12 @@ class DownloadModel(QAbstractListModel): data = QVariant() return data + def flags(self, index): + """Override flags so items aren't selectable. + + The default would be Qt.ItemIsEnabled | Qt.ItemIsSelectable.""" + return Qt.ItemIsEnabled + def rowCount(self, parent): """Get count of active downloads.""" if parent.isValid():