git://git.novaco.in
/
electrum-nvc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
969c4c2
)
check for QWebView and disable if not found
author
Marcell Ortutay
<marcell.ortutay@gmail.com>
Wed, 15 Jan 2014 00:18:06 +0000 (16:18 -0800)
committer
Marcell Ortutay
<marcell.ortutay@gmail.com>
Wed, 15 Jan 2014 00:18:06 +0000 (16:18 -0800)
plugins/coinbase_buyback.py
patch
|
blob
|
history
diff --git
a/plugins/coinbase_buyback.py
b/plugins/coinbase_buyback.py
index
27a2f51
..
04c3cff
100644
(file)
--- a/
plugins/coinbase_buyback.py
+++ b/
plugins/coinbase_buyback.py
@@
-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
@@
-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