Improved start_All and resume_All functions to detect if a torrent's state changed or not. This way, it doesn't flood the GUI if the user keeps on clicking on those buttons

This commit is contained in:
Christophe Dumez
2007-06-30 18:56:49 +00:00
parent 9bde00b7de
commit d12e510fad
3 changed files with 42 additions and 34 deletions

View File

@@ -91,8 +91,8 @@ class bittorrent : public QObject{
void downloadFromURLList(const QStringList& url_list);
void deleteTorrent(const QString& hash, bool permanent = false);
void pauseTorrent(const QString& hash);
void pauseAllTorrents();
void resumeAllTorrents();
bool pauseAllTorrents();
bool resumeAllTorrents();
void resumeTorrent(const QString& hash);
void enableDHT();
void disableDHT();