Changeset 58:685f1614c319 in SMSSender


Ignore:
Timestamp:
Feb 2, 2010 12:21:47 PM (9 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)
Location:
src
Files:
2 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);
  • src/persistence/storage/DAStorage.cpp

    r43 r58  
    4040    dbConnection_.setDatabaseName(BCSettings::instance()->getSettingsPath() + "data.db");
    4141    if (!dbConnection_.open()) {
     42        qCritical() << dbConnection_.lastError().text();
    4243        throw Storage::EReadException(tr("Can't open the database!"));
    4344    }
Note: See TracChangeset for help on using the changeset viewer.