diff --git a/twander.py b/twander.py index 5d37be5..0cf43c3 100755 --- a/twander.py +++ b/twander.py @@ -6,7 +6,7 @@ # Program Information PROGNAME = "twander" -RCSID = "$Id: twander.py,v 3.157 2005/01/08 08:36:12 tundra Exp $" +RCSID = "$Id: twander.py,v 3.158 2005/01/08 19:48:45 tundra Exp $" VERSION = RCSID.split()[2] # Copyright Information @@ -4191,11 +4191,18 @@ UI.DirList.yview(MOVETO, ys[0]) + # Cannot read current directory - probably media remove + # Just revert back to the original starting directory + # This won't work if the original starting directory is + # no longer readable - i.e. *It* was removed. + except: UI.CurrentDir=STARTDIR + os.chdir(STARTDIR) UI.DirList.insert(0, *BuildDirList(UI.CurrentDir)) KeySelTop(None) KeySelNone(None) + # Update titlebar to reflect any changes