Fixes dash-qt --version (--help etc) crash (Segmentation fault: 11)
This commit is contained in:
UdjinM6 2016-11-02 22:43:20 +04:00 committed by GitHub
parent 9ed18fdcbe
commit a4dfcae8f9

View File

@ -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();
} }