added option --debug-output to redirect client output to file

This commit is contained in:
Max-Wilhelm Bruker 2012-03-25 19:48:50 +02:00
parent 40d2b57de9
commit fd5be3d525
3 changed files with 7 additions and 3 deletions

View file

@ -72,8 +72,10 @@ void installNewTranslator()
int main(int argc, char *argv[])
{
// qInstallMsgHandler(myMessageOutput);
QApplication app(argc, argv);
if (app.arguments().contains("--debug-output"))
qInstallMsgHandler(myMessageOutput);
#ifdef Q_OS_MAC
QDir baseDir(app.applicationDirPath());
baseDir.cdUp();