Ignore:
Timestamp:
Feb 1, 2013, 6:52:55 PM (9 years ago)
Author:
jordan
Message:

(2.7x) backport r13799 for bug #5219

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.7x/qt/session.cc

    r13773 r13919  
    968968{
    969969    const QByteArray b64 = AddData(filename).toBase64();
     970    const QByteArray localPathUtf8 = localPath.toUtf8();
    970971
    971972    tr_benc top, *args;
     
    973974    tr_bencDictAddStr( &top, "method", "torrent-add" );
    974975    args = tr_bencDictAddDict( &top, "arguments", 3 );
    975     tr_bencDictAddStr( args, "download-dir", qPrintable(localPath) );
     976    tr_bencDictAddStr( args, "download-dir", localPathUtf8.constData() );
    976977    tr_bencDictAddBool( args, "paused", !myPrefs.getBool( Prefs::START ) );
    977978    tr_bencDictAddRaw( args, "metainfo", b64.constData(), b64.size() );
Note: See TracChangeset for help on using the changeset viewer.