Fixed crash on results double-click

Introduced by the Qt5 move. Looks like passing `None` to
`doubleClicked.emit()` doesn't cut it anymore.
This commit is contained in:
Virgil Dupras 2014-04-18 10:44:59 -04:00
parent ba13b700b0
commit 79db31685e
1 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
# which should be included with this package. The terms are also available at # which should be included with this package. The terms are also available at
# http://www.hardcoded.net/licenses/bsd_license # 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.QtGui import QBrush, QFont, QFontMetrics, QColor
from PyQt5.QtWidgets import QTableView from PyQt5.QtWidgets import QTableView
@ -112,7 +112,7 @@ class ResultsView(QTableView):
super().keyPressEvent(event) super().keyPressEvent(event)
def mouseDoubleClickEvent(self, 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. # We don't call the superclass' method because the default behavior is to rename the cell.
#--- Signals #--- Signals