Changeset 3453 for branches/gajim_0.8.2

Show
Ignore:
Timestamp:
09/06/05 13:40:28 (3 years ago)
Author:
nk
Message:

more fchooser fixes

Location:
branches/gajim_0.8.2/src
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/gajim_0.8.2/src/config.py

    r3452 r3453  
    19411941                else: 
    19421942                        gajim.config.add_per('emoticons', emot) 
    1943                         self.plugin.init_regexp() # update regexp [emoticons included] 
     1943                        self.plugin.init_regexp() # update regexp (emoticons included) 
    19441944                        gajim.config.set_per('emoticons', emot, 'path', 
    19451945                                model[iter][1].decode('utf-8')) 
    1946                         model.set_value(iter, 0, emot) 
     1946                        model[iter][0] = emot 
    19471947                self.plugin.save_config() 
    19481948 
    19491949        def update_preview(self, widget): 
    19501950                path_to_file = widget.get_preview_filename() 
    1951                 if os.path.isdir(path_to_file): 
     1951                if path_to_file is None or os.path.isdir(path_to_file): 
     1952                        # nothing to preview or directory 
     1953                        # make sure you clean image do show nothing 
     1954                        widget.get_preview_widget().set_from_file(None) 
    19521955                        return 
    19531956                try: 
  • branches/gajim_0.8.2/src/vcard.py

    r3452 r3453  
    122122        def update_preview(self, widget): 
    123123                path_to_file = widget.get_preview_filename() 
    124                 if os.path.isdir(path_to_file): 
     124                if path_to_file is None or os.path.isdir(path_to_file): 
     125                        # nothing to preview or directory 
     126                        # make sure you clean image do show nothing 
     127                        widget.get_preview_widget().set_from_file(None) 
    125128                        return 
    126129                try: