[Aptitude-svn-commit] r4396 - in branches/aptitude-0.3/aptitude: . src

Daniel Burrows dburrows at costa.debian.org
Sat Oct 1 01:17:02 UTC 2005


Author: dburrows
Date: Sat Oct  1 01:16:59 2005
New Revision: 4396

Modified:
   branches/aptitude-0.3/aptitude/ChangeLog
   branches/aptitude-0.3/aptitude/src/download_list.cc
Log:
Make download_list::destroy actually destroy the widget.

Modified: branches/aptitude-0.3/aptitude/ChangeLog
==============================================================================
--- branches/aptitude-0.3/aptitude/ChangeLog	(original)
+++ branches/aptitude-0.3/aptitude/ChangeLog	Sat Oct  1 01:16:59 2005
@@ -1,5 +1,10 @@
 2005-09-30  Daniel Burrows  <dburrows at debian.org>
 
+	* src/download_list.cc:
+
+	  Always destroy a download list when destroy() is called, even
+	  though "cancel" is a side-effect.
+
 	* src/ui.cc:
 
 	  Don't let mini-buffer downloads overload the Q key.

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:16:59 2005
@@ -135,6 +135,8 @@
 void download_list::destroy()
 {
   cancel();
+
+  vscreen_widget::destroy();
 }
 
 void download_list::paint(const style &st)
@@ -448,7 +450,7 @@
 
 void download_list::Complete(download_signal_log &manager)
 {
-  // Destroy ourselves for real.
+  // Destroy ourselves.
   vscreen_widget::destroy();
 }
 



More information about the Aptitude-svn-commit mailing list