aboutsummaryrefslogtreecommitdiff
path: root/src/dbwrapper.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <[email protected]>2016-08-18 16:58:04 +0200
committerWladimir J. van der Laan <[email protected]>2016-08-18 16:58:25 +0200
commitb4a9aa511c95a1bd0da8ae363b3b9c0b3b7afe4e (patch)
tree8aa54ab822f23670a1e8cce4520e0b2baa114d6a /src/dbwrapper.cpp
parentMerge #8453: Bring secp256k1 subtree up to date with master (diff)
downloaddiscoin-b4a9aa511c95a1bd0da8ae363b3b9c0b3b7afe4e.tar.xz
discoin-b4a9aa511c95a1bd0da8ae363b3b9c0b3b7afe4e.zip
qt: Fix random segfault when closing "Choose data directory" dialog
The `pickDataDirectory()` function was calling `exit(0)` to quit the application when the user closes the dialog without choosing a data directory. This is a bad idea because a background thread is created (to check free space on the drive of the currently selected datadir). The thread is not stopped and unwound properly, resulting in a potential race condition somewhere deep in Qt. So replace the `exit()` by a boolean return value, and let the stack unwind normally.
Diffstat (limited to 'src/dbwrapper.cpp')
0 files changed, 0 insertions, 0 deletions