From c4ed421106ee19abdc7b5e03b1dd7af61872b6d9 Mon Sep 17 00:00:00 2001 From: "Stanislav N. aka pztrn" Date: Tue, 22 Nov 2016 10:51:48 +0500 Subject: [PATCH] Temporary disable sorting in servers list until fixed in go-gtk. --- ui/mainwindow_init.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ui/mainwindow_init.go b/ui/mainwindow_init.go index 561bc53..b588c49 100644 --- a/ui/mainwindow_init.go +++ b/ui/mainwindow_init.go @@ -443,9 +443,11 @@ func (m *MainWindow) InitializeTabs() { m.all_servers_store_sortable.SetSortColumnId(m.column_pos["Servers"]["Name"], gtk.SORT_ASCENDING) // Sorting functions. - m.all_servers_store_sortable.SetSortFunc(m.column_pos["Servers"]["Name"], m.sortServersByName) - m.all_servers_store_sortable.SetSortFunc(m.column_pos["Servers"]["Players"], m.sortServersByPlayers) - m.all_servers_store_sortable.SetSortFunc(m.column_pos["Servers"]["Ping"], m.sortServersByPing) + // Race conditions and GC crazyness appears when activated, so for + // now commenting it out. + //m.all_servers_store_sortable.SetSortFunc(m.column_pos["Servers"]["Name"], m.sortServersByName) + //m.all_servers_store_sortable.SetSortFunc(m.column_pos["Servers"]["Players"], m.sortServersByPlayers) + //m.all_servers_store_sortable.SetSortFunc(m.column_pos["Servers"]["Ping"], m.sortServersByPing) // Selection changed signal, which will update server's short info pane. m.all_servers.Connect("cursor-changed", m.showShortServerInformation)