tMerge pull request #546 from ortutay/osx-snowl-fix - electrum - Electrum Bitcoin wallet
HTML git clone https://git.parazyd.org/electrum
DIR Log
DIR Files
DIR Refs
DIR Submodules
---
DIR commit e7b2b179308bd27733c6c034157d052b90de328c
DIR parent 969c4c2194d23aad915df2fdd3e142c2cd7997d8
HTML Author: ThomasV <thomasv1@gmx.de>
Date: Tue, 14 Jan 2014 21:26:43 -0800
Merge pull request #546 from ortutay/osx-snowl-fix
check for QWebView and disable if not found
Diffstat:
M plugins/coinbase_buyback.py | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
---
DIR diff --git a/plugins/coinbase_buyback.py b/plugins/coinbase_buyback.py
t@@ -16,7 +16,11 @@ from urllib import urlencode
from PyQt4.QtGui import *
from PyQt4.QtCore import *
-from PyQt4.QtWebKit import QWebView
+try:
+ from PyQt4.QtWebKit import QWebView
+ loaded_qweb = True
+except ImportError as e:
+ loaded_qweb = False
from electrum import BasePlugin
from electrum.i18n import _, set_language
t@@ -46,7 +50,7 @@ class Plugin(BasePlugin):
self._is_available = self._init()
def _init(self):
- return True
+ return loaded_qweb
def is_available(self):
return self._is_available