Ticket #3450: dbus-adaptor.diff

File dbus-adaptor.diff, 828 bytes (added by rb07, 12 years ago)

Patch I used on QTransmission for Windows.

  • dbus-adaptor.h

     
    3131
    3232  public slots:
    3333    bool PresentWindow();
    34     bool AddMetainfo( const QString& payload, const QString& filename );
     34    bool AddMetainfo( const QString& );
    3535};
    3636
    3737#endif
  • dbus-adaptor.cc

     
    2828}
    2929
    3030bool
    31 TrDBusAdaptor :: AddMetainfo( const QString& payload, const QString& filename )
     31TrDBusAdaptor :: AddMetainfo( const QString& file_or_magnet )
    3232{
    33     myApp->addTorrent( QFile(filename).exists() ? filename : payload );
     33    myApp->addTorrent( file_or_magnet );
    3434    return true;
    3535}