cosmetic bugfix

git-svn-id: svn://svn.berlios.de/gpodder/trunk@216 b0d088ad-0a06-0410-aad2-9ed5178a7e87
This commit is contained in:
Thomas Perl 2006-12-13 01:06:32 +00:00
parent 68eb929cf7
commit a1ec3c91ef
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
Wed, 13 Dec 2006 02:05:23 +0100 <thp@perli.net>
* src/gpodder/gpodder.py: Switch to (new) last channel when
deleting the last channel in the channel list in combobox
Wed, 13 Dec 2006 01:58:25 +0100 <thp@perli.net>
* src/gpodder/gpodder.py: New-style channel editor dialog (code)
* data/gpodder.glade: New-style channel editor dialog

View File

@ -222,6 +222,8 @@ class Gpodder(SimpleGladeApp):
old_active = self.comboAvailable.get_active()
if old_active < 0:
old_active = 0
elif old_active > len( self.channels)-1:
old_active = len(self.channels)-1
self.comboAvailable.set_model( channelsToModel( self.channels))
self.comboAvailable.set_active( old_active)
except: