Package: postr Version: 0.12.4-2.1 Severity: normal Tags: patch Don't remove photo from upload list until upload successful:
diff -ru postr-0.12.4.orig/src//postr.py postr-0.12.4/src//postr.py --- postr-0.12.4.orig/src//postr.py 2009-11-05 12:26:54.000000000 +1100 +++ postr-0.12.4/src//postr.py 2011-11-05 23:19:54.000000000 +1100 @@ -780,11 +780,6 @@ """Upload worker function, called by the File->Upload callback. As this calls itself in the deferred callback, it takes a response argument.""" - # Remove the uploaded image from the store - if self.current_upload_it: - self.model.remove(self.current_upload_it) - self.current_upload_it = None - it = self.model.get_iter_first() if self.cancel_upload or it is None: self.upload_done() @@ -842,4 +837,14 @@ d.addCallback(self.add_to_set, set_id) if groups: d.addCallback(self.add_to_groups, groups) + + d.addCallback(self.uploaded) d.addCallbacks(self.upload, self.upload_error) + + def uploaded(self,rsp): + # Remove the uploaded image from the store + if self.current_upload_it: + self.model.remove(self.current_upload_it) + self.current_upload_it = None + return rsp -- System Information: Debian Release: 7.1 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable'), (5, 'testing'), (2, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 3.9-0.bpo.1-amd64 (SMP w/8 CPU cores) Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages postr depends on: ii chromium [www-browser] 27.0.1453.110-1~deb7u1 ii google-chrome-unstable [www-browser] 29.0.1547.0-r208345 ii iceweasel [www-browser] 17.0.7esr-1~deb7u1 ii konqueror [www-browser] 4:4.8.4-2 ii links [www-browser] 2.7-1 ii lynx-cur [www-browser] 2.8.8dev.12-2 ii python 2.7.3-4 ii python-gconf 2.28.1+dfsg-1 ii python-glade2 2.24.0-3+b1 ii python-gtk2 2.24.0-3+b1 ii python-support 1.0.15 ii python-twisted-web 12.0.0-1 ii w3m [www-browser] 0.5.3-8 postr recommends no packages. postr suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org