Changeset 5278


Ignore:
Timestamp:
Mar 18, 2008, 1:59:03 AM (14 years ago)
Author:
charles
Message:

(gtk) tweak the watch directory: better detection of duplicates when scanning the directory on startup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/tr-core.c

    r5276 r5278  
    652652        GSList * l;
    653653        const gboolean doPrompt = pref_flag_get( PREF_KEY_OPTIONS_PROMPT );
     654        tr_handle * handle = core->priv->handle;
    654655
    655656        for( l=torrentFiles; l!=NULL; l=l->next )
    656657        {
    657             tr_ctor * ctor = tr_ctorNew( core->priv->handle );
     658            tr_ctor * ctor = tr_ctorNew( handle );
    658659            tr_core_apply_defaults( ctor );
    659660            if( forcePaused )
    660661                tr_ctorSetPaused( ctor, TR_FORCE, TRUE );
    661662            if( tr_ctorSetMetainfoFromFile( ctor, l->data ) )
     663                tr_ctorFree( ctor );
     664            else if( tr_torrentParse( handle, ctor, NULL ) )
    662665                tr_ctorFree( ctor );
    663666            else if( doPrompt )
Note: See TracChangeset for help on using the changeset viewer.