Skip to content

Commit

Permalink
Restore defaults doesn't change auto base pairs per segment
Browse files Browse the repository at this point in the history
  • Loading branch information
rrwick committed Jul 7, 2015
1 parent 4478c96 commit 071a192
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ui/settingsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,11 @@ void SettingsDialog::loadOrSaveSettingsToOrFromWidgets(bool setWidgets, Settings
void SettingsDialog::restoreDefaults()
{
Settings defaultSettings;

//The auto base pairs per segment is the only setting we don't want to
//restore, as it is calculated from the graph.
defaultSettings.autoBasePairsPerSegment = g_settings->autoBasePairsPerSegment;

loadOrSaveSettingsToOrFromWidgets(true, &defaultSettings);
setButtonColours();
}
Expand Down

0 comments on commit 071a192

Please sign in to comment.