summaryrefslogtreecommitdiff
path: root/core/apps
Side-by-side diff
Diffstat (limited to 'core/apps') (more/less context) (show whitespace changes)
-rw-r--r--core/apps/textedit/textedit.cpp17
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()
{
- if(featureAutoSave)
- {
- if( edited1 )
+ if(featureAutoSave && edited1)
{
@@ -1231,3 +1229,3 @@ void TextEdit::timerCrank()
{
- qDebug("autosave");
+// qDebug("autosave");
save();
@@ -1237,3 +1235,2 @@ void TextEdit::timerCrank()
}
-}
@@ -1248,7 +1245,7 @@ void TextEdit::doTimer(bool b)
{
- qDebug("doTimer true");
+// qDebug("doTimer true");
setTimer();
}
- else
- qDebug("doTimer false");
+// else
+// qDebug("doTimer false");
}
@@ -1259,6 +1256,6 @@ if(featureAutoSave)
{
- qDebug("setting autosave");
+// qDebug("setting autosave");
QTimer *timer = new QTimer(this );
connect( timer, SIGNAL(timeout()), this, SLOT(timerCrank()) );
- timer->start( 30000/*0*/, true); //5 minutes
+ timer->start( 300000, true); //5 minutes
}