From a15b2fc5571efc4442c1d68e82b205dea77b4d6f Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 24 Apr 2012 15:51:45 +0900 Subject: [PATCH] bump version; disable context for windows for now --- aqt/__init__.py | 2 +- aqt/webview.py | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/aqt/__init__.py b/aqt/__init__.py index aa014ec7e..b77ae3b4b 100644 --- a/aqt/__init__.py +++ b/aqt/__init__.py @@ -6,7 +6,7 @@ from aqt.qt import * import locale, gettext import anki.lang -appVersion="2.0-beta5" +appVersion="2.0-beta6" appWebsite="http://ankisrs.net/" appHelpSite="http://ankisrs.net/docs/dev/manual.html" appChanges="http://ankisrs.net/docs/dev/changes.html" diff --git a/aqt/webview.py b/aqt/webview.py index efdd090d2..9f6d4749d 100644 --- a/aqt/webview.py +++ b/aqt/webview.py @@ -69,6 +69,9 @@ class AnkiWebView(QWebView): return QWebView.keyPressEvent(self, evt) def contextMenuEvent(self, evt): + if isWin: + # broken on windows for now; events are being fired at the popup + return m = QMenu(self) m.addAction(self.pageAction(QWebPage.Cut)) m.addAction(self.pageAction(QWebPage.Copy))