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

Commits:

2 changed files:

Changes:

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

  • gajim/gtk/advanced_config.py
    ... ... @@ -201,7 +201,10 @@ def _on_config_edited(self,
    201 201
     
    
    202 202
             value = text
    
    203 203
             if modelrow[Column.TYPE] == SETTING_TYPES[int]:
    
    204
    -            value = int(text)
    
    204
    +            try:
    
    205
    +                value = int(text)
    
    206
    +            except ValueError:
    
    207
    +                return
    
    205 208
     
    
    206 209
             app.settings.set(setting, value)
    
    207 210
             modelrow[Column.VALUE] = text