Changeset 13447


Ignore:
Timestamp:
Aug 19, 2012, 12:12:43 AM (9 years ago)
Author:
jordan
Message:

(trunk, qt) #4036 'Qt Client doesnt delete torrent files' -- use a patch by rb07 to work around a Firefox idiosyncrasy that prevented the added .torrent file from being removed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/qt/options.cc

    r13381 r13447  
    5757        return;
    5858
    59     if( result == "success" )
    60         if( !myDelFile.isEmpty( ) )
    61             QFile( myDelFile ).remove( );
     59    if( ( result == "success" ) && !myDelFile.isEmpty( ) ) {
     60        QFile file( myDelFile );
     61        file.setPermissions( QFile::ReadOwner | QFile::WriteOwner );
     62        file.remove();
     63    }
    6264
    6365    if( result != "success" ) {
Note: See TracChangeset for help on using the changeset viewer.