summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2015-12-17 15:08:47 +0300
committermonsta <[email protected]>2015-12-17 15:18:41 +0300
commit9dd791b9bf46d155727cf07dddb25571a9a2cf75 (patch)
tree87c67a62d7f9929ff5a49964152c882c74b61f25
parentd0d440c0524c358571b7cd260a3e4d39820504b1 (diff)
downloadmate-system-monitor-9dd791b9bf46d155727cf07dddb25571a9a2cf75.tar.bz2
mate-system-monitor-9dd791b9bf46d155727cf07dddb25571a9a2cf75.tar.xz
remove unneeded assert
we don't need to crash here, thanks. the code below is able to handle excessive column ids just fine. fixes https://github.com/mate-desktop/mate-system-monitor/issues/76
-rw-r--r--src/proctable.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/proctable.cpp b/src/proctable.cpp
index 426cc0b..db6a122 100644
--- a/src/proctable.cpp
+++ b/src/proctable.cpp
@@ -146,8 +146,6 @@ proctable_set_columns_order(GtkTreeView *treeview, GSList *order)
id = GPOINTER_TO_INT(it->data);
- g_assert(id >= 0 && id < NUM_COLUMNS);
-
cur = my_gtk_tree_view_get_column_with_sort_column_id(treeview, id);
if(cur && cur != last)