Fix deleting old .fastresume files with fresh configs

This commit is contained in:
Andrew Resch 2009-11-05 03:44:46 +00:00
commit 447da3b1b4
2 changed files with 33 additions and 30 deletions

View file

@ -1,4 +1,7 @@
=== Deluge 1.2.0_rc4 (In Development) ===
==== Core ====
* Fix deleting old .fastresume files with fresh configs
==== GtkUI ====
* Fix showing the 'Other' speed dialogs in Windows
* Fix adding torrents from the Queued Torrents dialog

View file

@ -298,7 +298,7 @@ class TorrentManager(component.Component):
def legacy_delete_resume_data(self, torrent_id):
"""Deletes the .fastresume file"""
path = os.path.join(self.config["state_location"],
path = os.path.join(get_config_dir(), "state",
torrent_id + ".fastresume")
log.debug("Deleting fastresume file: %s", path)
try: