Ignore:
Timestamp:
Dec 22, 2010, 7:04:11 AM (11 years ago)
Author:
charles
Message:

(trunk gtk) #3844 "error popup when adding a relative path" -- fixed. initial patch by ijuxda.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/add-dialog.c

    r11572 r11574  
    1616#include <string.h>
    1717
     18#include <libtransmission/transmission.h>
     19#include <libtransmission/utils.h> /* tr_is_same_file() */
     20
    1821#include "add-dialog.h"
    1922#include "conf.h"
     
    188191        tr_torrent * torrent;
    189192
    190         if( filename && ( !data->filename || strcmp( filename, data->filename ) ) )
     193        if( filename && ( !data->filename || !tr_is_same_file( filename, data->filename ) ) )
    191194        {
    192195            g_free( data->filename );
     
    222225    char * fname = gtk_file_chooser_get_filename( GTK_FILE_CHOOSER( b ) );
    223226
    224     if( fname && ( !data->downloadDir || strcmp( fname, data->downloadDir ) ) )
     227    if( fname && ( !data->downloadDir || !tr_is_same_file( fname, data->downloadDir ) ) )
    225228    {
    226229        g_free( data->downloadDir );
Note: See TracChangeset for help on using the changeset viewer.