Browse Source

Fixed autocomplete freeze when clearing a large number of rows

merge-requests/365/head
eidheim 10 years ago
parent
commit
52f99efd91
  1. 5
      src/selectiondialog.cc
  2. 1
      src/selectiondialog.h

5
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<Gtk::TextBuffer::Mark> 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() {

1
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<Gtk::ListStore> list_store;
ColumnRecord column_record;

Loading…
Cancel
Save