Changeset 58:685f1614c319 in SMSSender for src/main.cpp


Ignore:
Timestamp:
Feb 2, 2010 12:21:47 PM (12 years ago)
Author:
Sämy Zehnder <saemy.zehnder@…>
Branch:
3.0
Convert:
svn:3639001d-8e34-449c-bb86-3782b86c4877/branches/3.0@57
Message:
  • Send log output only on windows into a file (there is no stdin/out)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main.cpp

    r54 r58  
    7373
    7474int main(int argc, char *argv[]){
    75     logfile.open("logfile.txt", ios::app);
    7675    #ifndef QT_NO_DEBUG_OUTPUT
    77     qInstallMsgHandler(MyOutputHandler);
     76        logfile.open("logfile.txt", ios::app);
     77        #if defined(Q_OS_WIN)
     78        qInstallMsgHandler(MyOutputHandler);
     79        #endif
    7880    #endif
    79 
    8081
    8182    QApplication a(argc, argv);
Note: See TracChangeset for help on using the changeset viewer.