[debian-edu-commits] debian-edu/ 58/183: Sort by fieldnumber (=index combobox +1) instead of fieldname (=combobox item) as the latter doesn't work with translations (it returns the translated string instead of the english one)

Alexander Alemayhu ccscanf-guest at moszumanska.debian.org
Wed Jun 11 16:48:33 UTC 2014


This is an automated email from the git hooks/post-receive script.

ccscanf-guest pushed a commit to branch master
in repository desktop-profiles.

commit c074ec59790c6cb4bfb3b75d398ef18b9686913a
Author: Bart Cornelis <cobaco at linux.be>
Date:   Thu May 12 19:01:25 2005 +0000

    Sort by fieldnumber (=index combobox +1) instead of fieldname (=combobox item)
    as the latter doesn't work with translations (it returns the translated string
    instead of the english one)
    
    -> makes gui work in translated version
---
 profile-manager.kmdr | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/profile-manager.kmdr b/profile-manager.kmdr
index 7722d40..570483f 100644
--- a/profile-manager.kmdr
+++ b/profile-manager.kmdr
@@ -682,7 +682,7 @@ fi
                                     <widget class="ComboBox">
                                         <item>
                                             <property name="text">
-                                                <string>description</string>
+                                                <string>name</string>
                                             </property>
                                         </item>
                                         <item>
@@ -697,17 +697,17 @@ fi
                                         </item>
                                         <item>
                                             <property name="text">
-                                                <string>name</string>
+                                                <string>precedence</string>
                                             </property>
                                         </item>
                                         <item>
                                             <property name="text">
-                                                <string>precedence</string>
+                                                <string>requirements</string>
                                             </property>
                                         </item>
                                         <item>
                                             <property name="text">
-                                                <string>requirements</string>
+                                                <string>description</string>
                                             </property>
                                         </item>
                                         <property name="name">
@@ -722,11 +722,11 @@ fi
                                             </sizepolicy>
                                         </property>
                                         <property name="currentItem">
-                                            <number>4</number>
+                                            <number>3</number>
                                         </property>
                                         <property name="associations" stdset="0">
                                             <stringlist>
-                                                <string>@widgetText</string>
+                                                <string>@exec(declare -i aid=@sortField.currentItem+1 && echo $aid)</string>
                                             </stringlist>
                                         </property>
                                         <property name="toolTip" stdset="0">

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-edu/pkg-team/desktop-profiles.git



More information about the debian-edu-commits mailing list