Skip to content

Commit

Permalink
Minor issue fix
Browse files Browse the repository at this point in the history
  • Loading branch information
LiMinggang committed May 23, 2016
1 parent 53712c4 commit 5b347df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/MadEditFrame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2374,7 +2374,7 @@ MadEditFrame::MadEditFrame( wxWindow *parent, wxWindowID id, const wxString &tit
g_MainFrame = this;

m_AutoSaveTimout = 0;
m_Config->Read( wxT( "AutoSaveTimeout" ), &m_AutoSaveTimout, 10 );
m_Config->Read( wxT( "AutoSaveTimeout" ), &m_AutoSaveTimout, 0 );
if(m_AutoSaveTimout >= 10 && m_AutoSaveTimout <= 30)
m_AutoSaveTimer.StartOnce(m_AutoSaveTimout*MADMINUTES);
else
Expand Down
2 changes: 1 addition & 1 deletion src/MadOptionsDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1255,7 +1255,7 @@ void MadOptionsDialog::LoadOptions( void )
ss = _( "System Default" );
cfg->Read( wxT( "DefaultEncoding" ), &ss );
WxComboBoxEncoding->SetValue( ss );
cfg->Read( wxT( "AutoSaveTimeout" ), &ll, 10 );
cfg->Read( wxT( "AutoSaveTimeout" ), &ll, 0 );
bb = ((ll >= 10) && (ll <= 30));
WxCheckBoxEnableAutoSave->SetValue( bb );
if(!bb) ll = 10;
Expand Down

0 comments on commit 5b347df

Please sign in to comment.