Philipp Hörist pushed to branch master at gajim / gajim


Commits:
909bae91 by mjk at 2023-05-13T13:45:12+00:00
imprv: ACE: Make descriptions selectable and copyable

- - - - -
ff08ac13 by mjk at 2023-05-13T13:54:14+00:00
fix: ACE: Handle invalid numeric values gracefully

- - - - -


2 changed files:

- gajim/data/gui/advanced_configuration.ui
- gajim/gtk/advanced_config.py


Changes:

=====================================
gajim/data/gui/advanced_configuration.ui
=====================================
@@ -96,7 +96,7 @@
           <object class="GtkLabel" id="description">
             <property name="height_request">40</property>
             <property name="visible">True</property>
-            <property name="can_focus">False</property>
+            <property name="selectable">True</property>
             <property name="wrap">True</property>
             <property name="max_width_chars">60</property>
             <property name="xalign">0</property>


=====================================
gajim/gtk/advanced_config.py
=====================================
@@ -201,7 +201,10 @@ def _on_config_edited(self,
 
         value = text
         if modelrow[Column.TYPE] == SETTING_TYPES[int]:
-            value = int(text)
+            try:
+                value = int(text)
+            except ValueError:
+                return
 
         app.settings.set(setting, value)
         modelrow[Column.VALUE] = text



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/compare/8694404e5b15cdb3b897673a278967b2d59bcccf...ff08ac13420a3b665ae246c516b70d7e765ccd66

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/compare/8694404e5b15cdb3b897673a278967b2d59bcccf...ff08ac13420a3b665ae246c516b70d7e765ccd66
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to