summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hartwig <mandyke@gmail.com>2012-05-26 19:27:29 +0800
committerDaniel Hartwig <mandyke@gmail.com>2012-05-26 19:27:29 +0800
commit2d3ccf5faeeb59f1c3bb78710ffde0e4c0263fc7 (patch)
tree29fa3bdede9c93034ae19f033ee027da1217657c
parent52e889d8e0e9636e43c6147b7bd924e04d014528 (diff)
downloadaptitude-2d3ccf5faeeb59f1c3bb78710ffde0e4c0263fc7.tar.gz
Update package views after 'Cancel pending actions'
Closes: #595753
-rw-r--r--NEWS3
-rw-r--r--src/ui.cc5
2 files changed, 8 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 4d28ad8d..6047267b 100644
--- a/NEWS
+++ b/NEWS
@@ -55,6 +55,9 @@ earlier releases.
* [all]: Fold some near-duplicate strings
+ * [curses]: Update package views after 'Cancel pending actions'
+ (Closes: #595753)
+
- Documentation:
* [doc]: Add doctype headers to html docs.
diff --git a/src/ui.cc b/src/ui.cc
index b70b8cf7..07fa9f95 100644
--- a/src/ui.cc
+++ b/src/ui.cc
@@ -1405,6 +1405,9 @@ static void do_show_preview()
static void do_keep_all()
{
+ if(apt_cache_file == NULL)
+ return;
+
auto_ptr<undo_group> undo(new apt_undo_group);
aptitudeDepCache::action_group group(*apt_cache_file, undo.get());
@@ -1415,6 +1418,8 @@ static void do_keep_all()
if(!undo.get()->empty())
apt_undos->add_item(undo.release());
+
+ package_states_changed();
}
static void fixer_dialog_done()