summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJasem Mutlaq <mutlaqja@ikarustech.com>2016-11-13 06:12:36 (GMT)
committerJasem Mutlaq <mutlaqja@ikarustech.com>2016-11-13 06:12:36 (GMT)
commita73a386db19075994a298b5e00e407ce0d07a734 (patch)
tree2d968a0fac5159b7a3011bdaa879d053843c2586
parentc29ef8466cdca80e4b1a34245a48dd3389e2b14f (diff)
Only reset file on startup
-rw-r--r--kstars/auxiliary/ksutils.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/kstars/auxiliary/ksutils.cpp b/kstars/auxiliary/ksutils.cpp
index 7f27e54..6f4a524 100644
--- a/kstars/auxiliary/ksutils.cpp
+++ b/kstars/auxiliary/ksutils.cpp
@@ -549,12 +549,12 @@ QString constGenetiveToAbbrev( const QString &genetive_ ) {
dir.mkpath(path);
QString name = "log_" + QDateTime::currentDateTime().toString("HH:mm:ss") + ".txt";
_filename = path + QStringLiteral("/") + name;
- }
- // Clear file contents
- QFile file(_filename);
- file.open(QFile::WriteOnly);
- file.close();
+ // Clear file contents
+ QFile file(_filename);
+ file.open(QFile::WriteOnly);
+ file.close();
+ }
qInstallMessageHandler(File);
}