From 52f99efd91ed56823ef8ea22871be12cfb43ef25 Mon Sep 17 00:00:00 2001 From: eidheim Date: Mon, 22 Feb 2016 10:18:45 +0100 Subject: [PATCH] Fixed autocomplete freeze when clearing a large number of rows --- src/selectiondialog.cc | 5 ----- src/selectiondialog.h | 1 - 2 files changed, 6 deletions(-) diff --git a/src/selectiondialog.cc b/src/selectiondialog.cc index 842072e..445f4d1 100644 --- a/src/selectiondialog.cc +++ b/src/selectiondialog.cc @@ -38,10 +38,6 @@ void ListViewText::append(const std::string& value) { new_row->set_value(column_record.text, value); } -void ListViewText::clear() { - list_store->clear(); -} - SelectionDialogBase::SelectionDialogBase(Gtk::TextView& text_view, Glib::RefPtr start_mark, bool show_search_entry, bool use_markup): text_view(text_view), list_view_text(use_markup), start_mark(start_mark), show_search_entry(show_search_entry) { if(!show_search_entry) @@ -121,7 +117,6 @@ void SelectionDialogBase::hide() { window->hide(); if(on_hide) on_hide(); - list_view_text.clear(); } void SelectionDialogBase::move() { diff --git a/src/selectiondialog.h b/src/selectiondialog.h index 732652f..8223918 100644 --- a/src/selectiondialog.h +++ b/src/selectiondialog.h @@ -17,7 +17,6 @@ public: bool use_markup; ListViewText(bool use_markup); void append(const std::string& value); - void clear(); private: Glib::RefPtr list_store; ColumnRecord column_record;