From 19e0ef46419e6c23054ff186f69a9d43e9814eb7 Mon Sep 17 00:00:00 2001 From: dubslow Date: Sat, 1 Nov 2014 00:30:04 -0500 Subject: [PATCH] remove a couple of debug statements --- src/main.cpp | 6 +++--- src/widget/widget.cpp | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 5b58a4f8c..ee8bfd98b 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -30,7 +30,7 @@ static QTextStream logFile; void myMessageHandler(QtMsgType type, const QMessageLogContext& ctxt, const QString& msg) { dflt(type, ctxt, msg); - logFile << QTime::currentTime().toString("HH:mm:ss' '") << msg << '\n'; + logFile << QTime::currentTime().toString("HH:mm:ss' '") << msg << '\n'; logFile.flush(); } #endif @@ -46,8 +46,8 @@ int main(int argc, char *argv[]) QFile logfile(QDir(Settings::getSettingsDirPath()).filePath("qtox.log")); logfile.open(QIODevice::Append); logFile.setDevice(&logfile); - - logFile << QDateTime::currentDateTime().toString("yyyy-dd-MM HH:mm:ss' file logger starting\n'"); + + logFile << QDateTime::currentDateTime().toString("yyyy-dd-MM HH:mm:ss' file logger starting\n'"); qInstallMessageHandler(myMessageHandler); #endif diff --git a/src/widget/widget.cpp b/src/widget/widget.cpp index c149a59ad..1d79087ba 100644 --- a/src/widget/widget.cpp +++ b/src/widget/widget.cpp @@ -593,7 +593,7 @@ void Widget::setStatusMessage(const QString &statusMessage) void Widget::addFriend(int friendId, const QString &userId) { - qDebug() << "Widget: Adding friend with id" << userId; + //qDebug() << "Widget: Adding friend with id" << userId; Friend* newfriend = FriendList::addFriend(friendId, userId); QLayout* layout = contactListWidget->getFriendLayout(Status::Offline); layout->addWidget(newfriend->widget); @@ -632,7 +632,7 @@ void Widget::addFriend(int friendId, const QString &userId) QPixmap avatar = Settings::getInstance().getSavedAvatar(userId); if (!avatar.isNull()) { - qWarning() << "Widget: loadded avatar for id" << userId; + //qWarning() << "Widget: loadded avatar for id" << userId; newfriend->chatForm->onAvatarChange(friendId, avatar); newfriend->widget->onAvatarChange(friendId, avatar); }