[dialer] Don't hardcode the path to /home/phablet for debug logs

This commit is contained in:
Martin Klapetek 2015-07-09 14:40:40 +02:00
parent ffdad67763
commit 30038e7fe2

View file

@ -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);