fix crash (#1126)
Fixes dash-qt --version (--help etc) crash (Segmentation fault: 11)
This commit is contained in:
parent
9ed18fdcbe
commit
a4dfcae8f9
@ -372,7 +372,7 @@ BitcoinApplication::~BitcoinApplication()
|
|||||||
#endif
|
#endif
|
||||||
// Delete Qt-settings if user clicked on "Reset Options"
|
// Delete Qt-settings if user clicked on "Reset Options"
|
||||||
QSettings settings;
|
QSettings settings;
|
||||||
if(optionsModel->resetSettings){
|
if(optionsModel && optionsModel->resetSettings){
|
||||||
settings.clear();
|
settings.clear();
|
||||||
settings.sync();
|
settings.sync();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user