# HG changeset patch # User Chris Cannam # Date 1396356146 -3600 # Node ID 34c1203d21b56c40524d6b800e9f35cd12cc9700 # Parent 394caa98d21a66bdb9942dd60e8be684a73d338c Optional printouts diff -r 394caa98d21a -r 34c1203d21b5 widgets/ActivityLog.cpp --- a/widgets/ActivityLog.cpp Mon Mar 31 10:20:21 2014 +0100 +++ b/widgets/ActivityLog.cpp Tue Apr 01 13:42:26 2014 +0100 @@ -25,6 +25,13 @@ #include +#include "base/Debug.h" + +using std::cerr; +using std::endl; + +#define PRINT_ACTIVITY 1 + ActivityLog::ActivityLog() : QDialog() { setWindowTitle(tr("Activity Log")); @@ -53,9 +60,16 @@ ActivityLog::activityHappened(QString name) { name = name.replace("&", ""); -// SVDEBUG << "ActivityLog::activityHappened(" << name << ")" << endl; + +#ifdef PRINT_ACTIVITY + cerr << "ActivityLog: " << name; if (name == m_prevName) { -// cerr << "(ignoring duplicate)" << endl; + cerr << " (duplicate)"; + } + cerr << endl; +#endif + + if (name == m_prevName) { return; } m_prevName = name;