From 30038e7fe2ef72faddcbf9d8671ab359c035c1bc Mon Sep 17 00:00:00 2001 From: Martin Klapetek Date: Thu, 9 Jul 2015 14:40:40 +0200 Subject: [PATCH] [dialer] Don't hardcode the path to /home/phablet for debug logs --- dialer/src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dialer/src/main.cpp b/dialer/src/main.cpp index ec11150e..8d717502 100644 --- a/dialer/src/main.cpp +++ b/dialer/src/main.cpp @@ -53,7 +53,7 @@ void myMessageOutput(QtMsgType type, const QMessageLogContext &context, const QString &msg) { // TODO: print it on stdout too? - QFile file("/home/phablet/dialer.log"); + QFile file(QDir::homePath() + "/dialer.log"); bool opened = file.open(QIODevice::WriteOnly | QIODevice::Append); Q_ASSERT(opened);