Commit graph

138 commits

Author SHA1 Message Date
SomberNight
f0657a3507
qt: show start-up wizard in case of exception
related: #4355
2018-05-11 00:03:01 +02:00
SomberNight
ae24af9bc2
wizard: move GoBack from Qt wizard to base_wizard 2018-05-01 14:47:50 +02:00
SomberNight
61a45edee0 Catch wallet file related exceptions in Qt wizard. 2018-03-17 22:56:20 +01:00
Jason Bruderer
9837a02c95 Fix "same wallet can be opened multiple times via InstallWizard" (#4076)
* Fix #4073

* Account for if the wallet is already in the daemon

* Only start a new thread if it doesn't exist

* Modify run_and_get_wallet to not return duplicate wallets

* Inform user if encrypted wallet is already open in memory
2018-03-15 06:46:23 +01:00
SomberNight
fe1e412f01 catch some exceptions during GUI init 2018-02-15 17:30:40 +01:00
SomberNight
7f04c30567 qt: if cannot load wallet, print trace 2018-02-14 18:10:58 +01:00
SomberNight
c9d93d30c7 fix #3877 2018-02-08 17:33:57 +01:00
Yuval Kogman
34256c16f8 QT: Only set if hasattr(QtCore.Qt, "AA_ShareOpenGLContexts")
If the attribute does not exist (presumably in older versions of Qt),
this change prevents the following error:

  AttributeError: type object 'Qt' has no attribute 'AA_ShareOpenGLContexts'
2018-01-13 20:17:02 +00:00
SomberNight
4f5bc9cff0 QT: AA_ShareOpenGLContexts
Makes this go away:
"Qt WebEngine seems to be initialized from a plugin. Please set Qt::AA_ShareOpenGLContexts using QCoreApplication::setAttribute before constructing QGuiApplication."
2018-01-11 17:49:15 +01:00
SomberNight
c8baff9faf fix #3217: make sure qt quits 2017-12-30 02:34:04 +01:00
Justin Turner Arthur
857eb4ac1d Remove unused imports. Explicitly import a few deep imports. 2017-11-13 02:28:00 -06:00
SomberNight
115ef54c0c fix: wallet storage upgrade happening silently even when using QT GUI 2017-11-02 12:11:36 +01:00
ThomasV
76da6916f3 Merge pull request #3010 from SomberNight/qt_wiz_catch_exc
fix: [QT wallet wizard] catch exceptions: UserCancelled, GoBack
2017-10-19 16:03:01 +02:00
Andrew Chow
9dc3eceea9 Modify tray context menu instead of creating a new one
Instead of creating a new context menu and setting it with setContextMenu,
simply clear and modify the existing context menu.
2017-10-12 12:26:42 -04:00
SomberNight
d48ecc990a fix: [QT wallet wizard] catch exceptions: UserCancelled, GoBack 2017-10-09 02:16:04 +02:00
Johann Bauer
5c2beb4ab5 Adjust colors if dark color scheme is used 2017-10-04 15:17:20 +02:00
SomberNight
4ac162f18b migration to PyQt5. initial commit. 2017-09-23 05:54:38 +02:00
ThomasV
9fc8d94d96 try..except block around load_wallet 2017-09-15 11:51:11 +02:00
ThomasV
51718501fd add server list to setup.py 2017-09-14 10:25:04 +02:00
Marko Bencun
5800a24559 fix Qt threading issue
Issue: #2209

Fixes this error when signing with a HW wallet:

 ./electrum
[xcb] Unknown sequence number while processing queue
[xcb] Most likely this is a multi-threaded client and XInitThreads has not been called
[xcb] Aborting, sorry about that.
python3: xcb_io.c:259: poll_for_event: Assertion `!xcb_xlib_threads_sequence_lost' failed.
Aborted (core dumped)

The cause is likely with the `show_message()` calls. The proper fix
would be to hunt down where QT Gui elements are touched from a wrong
thread.

The workaround is to call XInitThreads(), as the error message suggests.
2017-08-30 00:24:50 +02:00
ThomasV
dc9a25b83c fix qt package name 2017-08-27 07:18:33 +02:00
ThomasV
ab15ff3a00 updates for python3 2017-08-26 08:28:24 +02:00
Johann Bauer
8e54d5c4d4 Make proxies work 2017-08-26 08:28:24 +02:00
Dmitry Sorokin
5be78950ca py3 2017-08-26 08:27:47 +02:00
ThomasV
bfcfb1f240 wizard: make sure terminate is always called 2017-07-24 18:35:33 +02:00
ThomasV
92b392a56b minor fixes 2017-07-10 20:54:24 +02:00
ThomasV
c8e4b7a42e update network dialog when raised 2017-07-08 17:02:05 +02:00
ThomasV
dd50259f68 network_dialog: do not use parent for signalling 2017-07-08 15:35:48 +02:00
ThomasV
5ae5c81c48 use a unique and non-modal network dialog window 2017-07-08 15:23:00 +02:00
ThomasV
5b38ce20ea follow up previous commit 2017-03-08 11:58:25 +01:00
ThomasV
0f8387dbab fix #2257 2017-03-08 11:56:01 +01:00
ThomasV
dcffea150e store contacts and invoices in wallet file. fix #1482 2017-03-06 17:12:27 +01:00
ThomasV
411832c4ce cleanup storage and fix tracvis test 2017-03-06 08:33:35 +01:00
ThomasV
45f25586ef add file selector and password dialog to wizard (fix #1730) 2017-03-05 13:30:57 +01:00
ThomasV
6581cd93bb load_wallet: return from loop if the error is not invalid password 2017-03-01 20:10:47 +01:00
ThomasV
fcc92c1ebd Wallet file encryption:
- a keypair is derived from the wallet password
 - only the public key is retained in memory
 - wallets must opened and closed explicitly with the daemon
2017-03-01 13:58:04 +01:00
ThomasV
b69cb21333 Qt: catch exception raised by load_wallet 2017-01-07 08:57:25 +01:00
ThomasV
8249f5ab67 init_headers in daemon thread, and fix #1996 2016-10-24 14:57:02 +02:00
ThomasV
7ea91dde2e do not expose network to wizard. update message in issue #1972 2016-10-14 14:05:24 +02:00
ThomasV
e9f315ac6d fix #1609 2016-10-10 10:57:12 +02:00
ThomasV
1159f85e05 Major refactoring
- separation between Wallet and key management (Keystore)
 - simplification of wallet classes
 - remove support for multiple accounts in the same wallet
 - add support for OP_RETURN to Trezor plugin
 - split multi-accounts wallets for backward compatibility
2016-08-12 11:02:28 +02:00
ThomasV
e7d25faf02 Finish wizard unification 2016-06-24 23:02:54 +02:00
ThomasV
8680eae86f detect dangling links 2016-05-30 10:53:52 +02:00
ThomasV
80b1b2716c kivy: open last wallet 2016-03-08 11:10:04 +01:00
ThomasV
305843999e Relicensing 2016-02-24 10:20:30 +01:00
Neil Booth
58d5215e2e No need to pass daemon and network together
The daemon has the network
2016-01-29 22:25:59 +09:00
ThomasV
08e5aecee2 Revert "Plugins: remove init_qt hook; clean up"
This reverts commit e20369bf94.
2016-01-28 14:57:59 +01:00
Neil Booth
e20369bf94 Plugins: remove init_qt hook; clean up
Fixes #1644
2016-01-24 20:14:08 +09:00
ThomasV
632905dfbe instantiate wizard only if needed 2016-01-13 11:27:17 +01:00
Neil Booth
f7b39f4952 A different approach to d5aa646
Only clean up the MainWindow once.
2016-01-12 20:19:21 +09:00