Package: qgis / 2.4.0-1

0001-processing-Sort-algorithms-when-updating-provider-al.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
From fcd09c5c25f6629744d4f42027ae2b7dfdc1f90e Mon Sep 17 00:00:00 2001
From: Rado Guzinski <rmgu@dhi-gras.com>
Date: Fri, 27 Jun 2014 13:33:08 +0200
Subject: [processing] Sort algorithms when updating provider alg list.
Origin: https://github.com/qgis/QGIS/commit/fcd09c5c25f6629744d4f42027ae2b7dfdc1f90e


--- a/python/plugins/processing/gui/ProcessingToolbox.py
+++ b/python/plugins/processing/gui/ProcessingToolbox.py
@@ -123,6 +123,10 @@ class ProcessingToolbox(QDockWidget, Ui_
             if isinstance(child, TreeProviderItem):
                 if child.providerName == providerName:
                     child.refresh()
+                    # sort categories and items in categories
+                    child.sortChildren(0, Qt.AscendingOrder)
+                    for i in xrange(child.childCount()):
+                        child.child(i).sortChildren(0, Qt.AscendingOrder)
                     break
 
     def showPopupMenu(self, point):