diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2016-08-18 16:58:04 +0200 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2016-09-07 16:17:09 +0200 |
commit | 1db3352cc663f6a25a39813c763a2f6263f55e6d (patch) | |
tree | 07b488e23edec9725205de01d2f8527fde67336d /src/coins.cpp | |
parent | 75f20652932361a176e72e2ba3477f4604810bb6 (diff) |
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/coins.cpp')
0 files changed, 0 insertions, 0 deletions