mirror of https://github.com/BOINC/boinc.git
MGR: fix crash bug in Simple View preferences dialog
This commit is contained in:
parent
93b8289b60
commit
9be94b09c5
|
@ -712,7 +712,7 @@ bool CPanelPreferences::ReadPreferenceSettings() {
|
|||
// Use no more than %s of disk space
|
||||
wxArrayString aDiskUsage = wxArrayString(iDiskUsageArraySize, astrDiskUsageStrings);
|
||||
wxString strDiskUsage = wxEmptyString;
|
||||
int iDiskUsageIndex = iDiskUsageArraySize;
|
||||
int iDiskUsageIndex = iDiskUsageArraySize - 1;
|
||||
|
||||
if (display_global_preferences.disk_max_used_gb > 0) {
|
||||
if (display_global_preferences.disk_max_used_gb < 1) {
|
||||
|
|
Loading…
Reference in New Issue