~ubuntu-branches/ubuntu/hardy/restricted-manager/hardy

« back to all changes in this revision

Viewing changes to RestrictedManager/xorg_driver.py

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2007-03-30 15:23:07 UTC
  • Revision ID: james.westby@ubuntu.com-20070330152307-1uogsoutlsknvhnp
Tags: 0.17
* debian/rules: Build with DH_PYCENTRAL=nomove, just to make double sure to
  circumvent #93795.
* RestrictedManager/xorg_driver.py: Do not crash on empty lines in the
  Module section. (LP: #98579)
* restricted-manager: Use the update-notifier reload icon instead of the
  stock Gnome 'refresh' one for consistency. Thanks to izi for the patch!
  (LP: #97726)

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
        """Check if current xorg configuration enables a module."""
49
49
 
50
50
        for m in self.xorg_conf.getSections("module")[0]._contents:
51
 
            if m._row[1] == module:
 
51
            if len(m._row) >= 2 and m._row[1] == module:
52
52
                return True
53
53
        return False
54
54