Changeset 14131


Ignore:
Timestamp:
Jul 20, 2013, 3:55:29 PM (9 years ago)
Author:
jordan
Message:

(trunk, gtk) #5430: periodic update timer in 'Torrent > Set Location...' should be cleared immediately when dialog is closed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/relocate.c

    r13761 r14131  
    2929  int done;
    3030  bool do_move;
     31  guint timer;
    3132  TrCore * core;
    3233  GSList * torrent_ids;
     
    3940{
    4041  struct relocate_dialog_data * data = gdata;
     42  g_source_remove (data->timer);
    4143  g_slist_free (data->torrent_ids);
    4244  g_free (data);
     
    128130      data->message_dialog = w;
    129131      data->done = TR_LOC_DONE;
     132      data->timer = gdk_threads_add_timeout_seconds (1, onTimer, data);
    130133      onTimer (data);
    131       gdk_threads_add_timeout_seconds (1, onTimer, data);
    132134    }
    133135  else
Note: See TracChangeset for help on using the changeset viewer.