From e1c5fcdb0ab8ff6dcc80bc5d63e5e9b74a3391fa Mon Sep 17 00:00:00 2001 From: Jinhao Date: Sun, 28 Jan 2018 11:21:45 +0800 Subject: [PATCH] enhance performance of setting model for a listbox --- source/gui/widgets/listbox.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/gui/widgets/listbox.cpp b/source/gui/widgets/listbox.cpp index b21cf392..a0c2db52 100644 --- a/source/gui/widgets/listbox.cpp +++ b/source/gui/widgets/listbox.cpp @@ -5158,7 +5158,8 @@ namespace nana cat_->make_sort_order(); ess_->lister.sort(); - ess_->update(true); + //Don't ignore the auto-draw flag for performance enhancement. + ess_->update(); } } //end class cat_proxy