Skip to content

Commit

Permalink
[Windows] Fix crash when setting weekly updates.
Browse files Browse the repository at this point in the history
It happens due to our wxRadioButtons having 3 options (indexed by 0, 1
and 2) but we trying to get the index 7 (due to want to check every 7
days).

We should still implement something like WinSparkle for Windows.

- Fix #499.
  • Loading branch information
denisfa authored and rkitover committed Sep 16, 2019
1 parent efa09bd commit 0710709
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wx/guiinit.cpp
Expand Up @@ -3398,7 +3398,7 @@ bool MainFrame::BindControls()
// Online Auto Update check frequency
getrbi("UpdateNever", gopts.onlineupdates, 0);
getrbi("UpdateDaily", gopts.onlineupdates, 1);
getrbi("UpdateWeekly", gopts.onlineupdates, 7);
getrbi("UpdateWeekly", gopts.onlineupdates, 2);
#else
wxWindowList &children = d->GetChildren();
std::vector<wxWindow*> forDeletion;
Expand Down

0 comments on commit 0710709

Please sign in to comment.