Changeset 9265 for trunk/gtk/tr-prefs.c


Ignore:
Timestamp:
Oct 10, 2009, 7:29:13 AM (13 years ago)
Author:
charles
Message:

(trunk gtk) #2485: Crash in preferences dialog when testing the open port

File:
1 edited

Legend:

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

    r8889 r9265  
    13051305    gtk_widget_set_sensitive( data->portSpin, FALSE );
    13061306    gtk_label_set_markup( GTK_LABEL( data->portLabel ), _( "<i>Testing...</i>" ) );
    1307     data->portTag = g_signal_connect( data->core, "port-tested", G_CALLBACK(onPortTested), data );
     1307    if( !data->portTag )
     1308        data->portTag = g_signal_connect( data->core, "port-tested", G_CALLBACK(onPortTested), data );
    13081309    tr_core_port_test( data->core );
    13091310}
Note: See TracChangeset for help on using the changeset viewer.