From 12676e5b9f93441ca5a29053e3ee077268dc40b0 2011-12-14 02:51:01 From: Fernando Perez Date: 2011-12-14 02:51:01 Subject: [PATCH] Disable part of #1150 that was crashing the console on ubuntu with qt 4.8.5. --- diff --git a/IPython/frontend/qt/console/console_widget.py b/IPython/frontend/qt/console/console_widget.py index 9428302..cbf56e9 100644 --- a/IPython/frontend/qt/console/console_widget.py +++ b/IPython/frontend/qt/console/console_widget.py @@ -368,7 +368,13 @@ class ConsoleWidget(LoggingConfigurable, QtGui.QWidget): # problem of tearing of the pager window's help text on Mac OS X. This # happens with PySide and PyQt. This fix isn't perfect but makes the # pager more usable. - elif etype in [QtCore.QEvent.Wheel, QtCore.QEvent.NativeGesture] and \ + + # FIXME: this line, on qt 4.8.5, crashes b/c NativeGesture is not + # available. Disabling for now, until we sort out a cleaner solution. + # See https://github.com/ipython/ipython/pull/1150 for details. + #elif etype in [QtCore.QEvent.Wheel, QtCore.QEvent.NativeGesture] and \ + + elif etype == QtCore.QEvent.Wheel and \ obj == self._page_control: self._page_control.repaint() return True