diff --git a/ChangeLog b/ChangeLog index 90e8b3e12..1c37d9017 100644 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,8 @@ Changes in 1.9.4 -- * Updated translations: es, fr, nl * New features: - Engrave custom dialog for specifying other engraving formats and options +* Bugfixes: + - fix crash on 64bit Linux and Windows introduced in 1.9.3 Changes in 1.9.3 -- December 1st, 2011 diff --git a/frescobaldi_app/widgets/drag.py b/frescobaldi_app/widgets/drag.py index a96d904fa..7fd43109b 100644 --- a/frescobaldi_app/widgets/drag.py +++ b/frescobaldi_app/widgets/drag.py @@ -46,12 +46,11 @@ def __init__(self, combobox): combobox.installEventFilter(self) def eventFilter(self, combobox, ev): - if combobox.count() == 0: - return False if ev.type() == QEvent.MouseButtonPress and ev.button() == Qt.LeftButton: self._dragpos = ev.pos() return not combobox.isEditable() - elif ev.type() == QEvent.MouseMove and ev.buttons() & Qt.LeftButton: + elif (ev.type() == QEvent.MouseMove and ev.buttons() & Qt.LeftButton + and combobox.count() >0): return self.mouseMoved(combobox, ev.pos()) or False elif (ev.type() == QEvent.MouseButtonRelease and ev.button() == Qt.LeftButton and not combobox.isEditable()):