Changeset 167

Show
Ignore:
Timestamp:
11/03/2004 09:30:01 AM (4 years ago)
Author:
mtigges
Message:

Thwarts a crash that thwarts a crash if the window manager calls eval
to restart itself.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/plwm/views.py

    r146 r167  
    1 # $Id: views.py,v 1.6 2003-11-14 22:48:50 petli Exp $ 
     1# $Id: views.py,v 1.7 2004-11-03 15:30:01 mtigges Exp $ 
    22# 
    33# views.py -- Handle views ("workspaces") 
     
    315315            self.view_list.remove(self.view_current) 
    316316 
    317         self.view_current = self.view_list[self.view_index] 
     317 
     318        try: 
     319            self.view_current = self.view_list[self.view_index] 
     320        except: 
     321            self.view_current = self.view_list[0] 
     322             
    318323        self.view_winconf = winconf 
    319324