[pan: 13/16] Use the right stable sort...
- From: Dominique Dumont <ddumont src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pan: 13/16] Use the right stable sort...
- Date: Mon, 25 Apr 2022 17:36:04 +0000 (UTC)
commit 69c38011357fe54350eda9fc0b620857910a7f1a
Author: Thomas Tanner <thosrtanner googlemail com>
Date: Sat Apr 16 12:36:21 2022 +0100
Use the right stable sort...
pan/gui/group-pane.cc | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/pan/gui/group-pane.cc b/pan/gui/group-pane.cc
index 952b513..ebe0fa0 100644
--- a/pan/gui/group-pane.cc
+++ b/pan/gui/group-pane.cc
@@ -439,7 +439,12 @@ namespace
expandme.push_back (store->get_iter (row));
}
- std::stable_sort (setme_rows.begin(), setme_rows.end());
+ //Use a stable sort to ensure that if there are newsgroups called Sent
+ //or Drafts on the server (yes, it does happen!) and you have the local
+ //version selected on exit, it reslects the local one on restart.
+ //With normal sort, a random one of the two is picked, which is seriously
+ //disconcerting.
+ setme_rows.stable_sort ();
return store;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]