[Aptitude-svn-commit] r4398 - in branches/aptitude-0.3/aptitude: .
src
Daniel Burrows
dburrows at costa.debian.org
Sat Oct 1 01:24:56 UTC 2005
Author: dburrows
Date: Sat Oct 1 01:24:53 2005
New Revision: 4398
Modified:
branches/aptitude-0.3/aptitude/ChangeLog
branches/aptitude-0.3/aptitude/src/download_list.cc
Log:
Actually use abortslot.
Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog (original)
+++ branches/aptitude-0.3/aptitude/ChangeLog Sat Oct 1 01:24:53 2005
@@ -1,5 +1,9 @@
2005-09-30 Daniel Burrows <dburrows at debian.org>
+ * src/download_list.cc:
+
+ Actually use abortslot when a download is cancelled.
+
* src/ui.cc, src/ui.h, src/ui_download_manager.cc, src/ui_download_manager.h:
Expose the widget that's handling the download status, so it can
Modified: branches/aptitude-0.3/aptitude/src/download_list.cc
==============================================================================
--- branches/aptitude-0.3/aptitude/src/download_list.cc (original)
+++ branches/aptitude-0.3/aptitude/src/download_list.cc Sat Oct 1 01:24:53 2005
@@ -132,6 +132,14 @@
do_layout.connect(sigc::mem_fun(*this, &download_list::layout_me));
}
+void download_list::cancel()
+{
+ cancelled=true;
+
+ if(abortslot)
+ abortslot();
+}
+
void download_list::destroy()
{
cancel();
More information about the Aptitude-svn-commit
mailing list