electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 1d885c11e076f1a10fac580766f7d06ccaa0b3bb
parent 59c76f5e0969433b648d40bbef577165839f0437
Author: ThomasV <thomasv@gitorious>
Date:   Thu,  5 Mar 2015 07:49:07 +0100

fix segfault in zbar init, issue #1059

Diffstat:
Mlib/qrscanner.py | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/lib/qrscanner.py b/lib/qrscanner.py @@ -17,8 +17,11 @@ def scan_qr(config): device = config.get("video_device", "default") if device == 'default': device = '' - proc = zbar.Processor() - proc.init(video_device=device) + _proc = zbar.Processor() + _proc.init(video_device=device) + # set global only if init did not raise an exception + proc = _proc + proc.visible = True while True: