fix gtk+ crash. reported, tracked, and patched by serge in ticket #512
This commit is contained in:
parent
1cd5a05fb3
commit
e843d4869c
|
@ -349,12 +349,8 @@ tr_core_handle( TrCore * self )
|
||||||
static void
|
static void
|
||||||
tr_core_insert( TrCore * self, TrTorrent * tor )
|
tr_core_insert( TrCore * self, TrTorrent * tor )
|
||||||
{
|
{
|
||||||
GtkTreeIter iter;
|
const tr_info * inf = tr_torrent_info( tor );
|
||||||
const tr_info * inf;
|
gtk_list_store_insert_with_values( GTK_LIST_STORE( self->model ), NULL, 0,
|
||||||
|
|
||||||
gtk_list_store_append( GTK_LIST_STORE( self->model ), &iter );
|
|
||||||
inf = tr_torrent_info( tor );
|
|
||||||
gtk_list_store_set( GTK_LIST_STORE( self->model ), &iter,
|
|
||||||
MC_NAME, inf->name,
|
MC_NAME, inf->name,
|
||||||
MC_SIZE, inf->totalSize,
|
MC_SIZE, inf->totalSize,
|
||||||
MC_HASH, inf->hashString,
|
MC_HASH, inf->hashString,
|
||||||
|
|
Loading…
Reference in New Issue