(gtk) #769: when removing a torrent, prompt for confirmation if (a) the torrent is incomplete, (b) the torrent is connected to peers, (c) the user is also deleting the downloaded files.

This commit is contained in:
Charles Kerr
2008-03-07 17:47:42 +00:00
parent 1df3d8d844
commit 0cebab1247
5 changed files with 83 additions and 53 deletions

View File

@@ -38,6 +38,9 @@ GtkWidget* promptfordir( GtkWindow * parent,
/* prompt if the user wants to quit, calls func with cbdata if they do */
void askquit( TrCore*, GtkWindow* parent, callbackfunc_t func, void* cbdata );
void confirmDelete( GtkWindow * parent, TrCore * core, GList * torrents );
void confirmRemove( GtkWindow * parent,
TrCore * core,
GList * gtorrents,
gboolean doDelete );
#endif /* TG_PREFS_H */