Skip to content

Commit

Permalink
Fix crash in logging prefs due to deprecation's default -1 severity
Browse files Browse the repository at this point in the history
  • Loading branch information
CelticMinstrel committed Mar 4, 2018
1 parent 9fe567e commit 91ec565
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/dialogs/log_settings.cpp
Expand Up @@ -78,7 +78,7 @@ void log_settings::pre_show(window& window)
}
}
int current_sev;
if (lg::get_log_domain_severity(this_domain, current_sev)){
if (lg::get_log_domain_severity(this_domain, current_sev) && current_sev >= 0 && current_sev < widget_id_.size()){
group.set_member_states(widget_id_[current_sev]);
}
}
Expand Down

0 comments on commit 91ec565

Please sign in to comment.