From 79db31685e0faa64733956474d20cae7cd53c41b Mon Sep 17 00:00:00 2001 From: Virgil Dupras Date: Fri, 18 Apr 2014 10:44:59 -0400 Subject: [PATCH] Fixed crash on results double-click Introduced by the Qt5 move. Looks like passing `None` to `doubleClicked.emit()` doesn't cut it anymore. --- qt/base/results_model.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qt/base/results_model.py b/qt/base/results_model.py index 57c8f3ce..44121801 100644 --- a/qt/base/results_model.py +++ b/qt/base/results_model.py @@ -6,7 +6,7 @@ # which should be included with this package. The terms are also available at # http://www.hardcoded.net/licenses/bsd_license -from PyQt5.QtCore import Qt, pyqtSignal +from PyQt5.QtCore import Qt, pyqtSignal, QModelIndex from PyQt5.QtGui import QBrush, QFont, QFontMetrics, QColor from PyQt5.QtWidgets import QTableView @@ -112,7 +112,7 @@ class ResultsView(QTableView): super().keyPressEvent(event) def mouseDoubleClickEvent(self, event): - self.doubleClicked.emit(None) + self.doubleClicked.emit(QModelIndex()) # We don't call the superclass' method because the default behavior is to rename the cell. #--- Signals