Changeset c4b62f


Ignore:
Timestamp:
07/18/2008 08:53:16 PM (17 years ago)
Author:
Andrew Resch <andrewresch@gmail.com>
Branches:
2.0.x, develop, extjs4-port, master
Children:
1fb61c
Parents:
461432b
Message:

Preferences plugin fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • deluge/ui/gtkui/preferences.py

    r461432b rc4b62f  
    108108        """Add a another page to the notebook"""
    109109        # Create a header and scrolled window for the preferences tab
    110         widget.unparent()
     110        parent = widget.get_parent()
     111        if parent:
     112            parent.remove(widget)
    111113        vbox = gtk.VBox()
    112114        label = gtk.Label()
     
    661663        # Show the correct notebook page based on what row is selected.
    662664        (model, row) = treeselection.get_selected()
    663         self.notebook.set_current_page(model.get_value(row, 0))
     665        try:
     666            self.notebook.set_current_page(model.get_value(row, 0))
     667        except TypeError:
     668            pass
    664669
    665670    def on_test_port_clicked(self, data):
Note: See TracChangeset for help on using the changeset viewer.