FEATURE: Added option to skip torrent deletion confirmation (Ville Kiiskinen)

This commit is contained in:
Christophe Dumez
2011-01-16 15:29:44 +00:00
parent 35a4e4aa1c
commit 8fd7b86f45
4 changed files with 37 additions and 18 deletions

View File

@@ -1009,6 +1009,12 @@ public:
setValue(QString::fromUtf8("Preferences/Advanced/updateCheck"), enabled);
}
#endif
bool confirmTorrentDeletion() const {
return value(QString::fromUtf8("Preferences/Advanced/confirmTorrentDeletion"), true).toBool();
}
void setConfirmTorrentDeletion(bool enabled) {
setValue(QString::fromUtf8("Preferences/Advanced/confirmTorrentDeletion"), enabled);
}
};
#endif // PREFERENCES_H