[gnote] Fix changing sorting not always works



commit 9caa2a376cf31631ab40c608b0b0c5414127b0ff
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Fri Jan 1 23:06:42 2021 +0200

    Fix changing sorting not always works

 src/searchnoteswidget.cpp | 1 -
 1 file changed, 1 deletion(-)
---
diff --git a/src/searchnoteswidget.cpp b/src/searchnoteswidget.cpp
index 6efcd93f..fc1c302d 100644
--- a/src/searchnoteswidget.cpp
+++ b/src/searchnoteswidget.cpp
@@ -509,7 +509,6 @@ void SearchNotesWidget::update_results()
   m_store_sort->set_sort_func(2 /* change date */,
                               sigc::mem_fun(*this, &SearchNotesWidget::compare_dates));
   m_store_sort->set_sort_column(m_sort_column_id, m_sort_column_order);
-  m_store_sort->unset_default_sort_func();
   m_store_sort->signal_sort_column_changed()
     .connect(sigc::mem_fun(*this, &SearchNotesWidget::on_sorting_changed));
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]