Changeset 11069


Ignore:
Timestamp:
Jul 30, 2010, 10:22:52 PM (12 years ago)
Author:
charles
Message:

(trunk qt) silence a spurious cerr linefeed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/qt/app.cc

    r11065 r11069  
    238238    QDBusConnection bus = QDBusConnection::sessionBus();
    239239    if (!bus.registerService("com.transmissionbt.Transmission"))
    240         fprintf(stderr, "%s\n", qPrintable(bus.lastError().message()));
     240        if(bus.lastError().isValid())
     241            std::cerr << qPrintable(bus.lastError().message()) << std::endl;
    241242    if( !bus.registerObject( "/com/transmissionbt/Transmission", this ))
    242         fprintf(stderr, "%s\n", qPrintable(bus.lastError().message()));
     243        if(bus.lastError().isValid())
     244            std::cerr << qPrintable(bus.lastError().message()) << std::endl;
    243245}
    244246
Note: See TracChangeset for help on using the changeset viewer.