summaryrefslogtreecommitdiff
path: root/www-client/uget/files/uget-2.2.3-fix_crash_sorting.patch
blob: 8aeb53acb90435764ccec66d4b99d3e4218d318a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
fix crash when changing sort
https://github.com/ugetdm/uget/issues/40
patch from upstream: 0c5b01
--- a/ui-gtk/UgtkApp-callback.c
+++ b/ui-gtk/UgtkApp-callback.c
@@ -549,6 +549,9 @@ static void node_updated (UgetNode* child)
 	UgtkApp*     app;
 
 	node = child->parent;
+	if(node == NULL) {
+		return;
+	}
 	app = node->control->notifier->data;
 	if (node == (UgetNode*) app->traveler.category.model->root) {
 		// category changed