Commit 8f3d63e0 authored by Tristan Matthews's avatar Tristan Matthews

* #10736: calltab: we don't need to clear the tree store on exit

This was triggering inappropriate callbacks on exit.
parent c0f4d778
......@@ -152,9 +152,6 @@ sflphone_quit()
calllist_clean(current_calls_tab);
calllist_clean(contacts_tab);
calllist_clean(history_tab);
gtk_tree_store_clear(history_tab->store);
gtk_tree_store_clear(current_calls_tab->store);
gtk_tree_store_clear(contacts_tab->store);
gtk_main_quit();
}
}
......
......@@ -98,9 +98,9 @@ calltab_create_searchbar(calltab_t* tab)
{
g_assert(tab);
if (utf8_case_equal(tab->_name, HISTORY))
if (g_strcmp0(tab->_name, HISTORY) == 0)
tab->searchbar = history_searchbar_new();
else if (utf8_case_equal(tab->_name, CONTACTS))
else if (g_strcmp0(tab->_name, CONTACTS) == 0)
tab->searchbar = contacts_searchbar_new();
else
ERROR("Current calls tab does not need a searchbar\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment