-rw-r--r-- | core/apps/textedit/textedit.cpp | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/core/apps/textedit/textedit.cpp b/core/apps/textedit/textedit.cpp index 1e8ce7f..f571511 100644 --- a/core/apps/textedit/textedit.cpp +++ b/core/apps/textedit/textedit.cpp | |||
@@ -1220,5 +1220,3 @@ void TextEdit::timerCrank() | |||
1220 | { | 1220 | { |
1221 | if(featureAutoSave) | 1221 | if(featureAutoSave && edited1) |
1222 | { | ||
1223 | if( edited1 ) | ||
1224 | { | 1222 | { |
@@ -1231,3 +1229,3 @@ void TextEdit::timerCrank() | |||
1231 | { | 1229 | { |
1232 | qDebug("autosave"); | 1230 | // qDebug("autosave"); |
1233 | save(); | 1231 | save(); |
@@ -1237,3 +1235,2 @@ void TextEdit::timerCrank() | |||
1237 | } | 1235 | } |
1238 | } | ||
1239 | 1236 | ||
@@ -1248,7 +1245,7 @@ void TextEdit::doTimer(bool b) | |||
1248 | { | 1245 | { |
1249 | qDebug("doTimer true"); | 1246 | // qDebug("doTimer true"); |
1250 | setTimer(); | 1247 | setTimer(); |
1251 | } | 1248 | } |
1252 | else | 1249 | // else |
1253 | qDebug("doTimer false"); | 1250 | // qDebug("doTimer false"); |
1254 | } | 1251 | } |
@@ -1259,6 +1256,6 @@ if(featureAutoSave) | |||
1259 | { | 1256 | { |
1260 | qDebug("setting autosave"); | 1257 | // qDebug("setting autosave"); |
1261 | QTimer *timer = new QTimer(this ); | 1258 | QTimer *timer = new QTimer(this ); |
1262 | connect( timer, SIGNAL(timeout()), this, SLOT(timerCrank()) ); | 1259 | connect( timer, SIGNAL(timeout()), this, SLOT(timerCrank()) ); |
1263 | timer->start( 30000/*0*/, true); //5 minutes | 1260 | timer->start( 300000, true); //5 minutes |
1264 | } | 1261 | } |