Make sure form is updated when removing top item from list

git-svn-id: http://comictagger.googlecode.com/svn/trunk@621 6c5673fe-1810-88d6-992b-cd32ca31540c
This commit is contained in:
beville@gmail.com 2013-05-01 22:32:20 +00:00
parent 9e2817c037
commit 3223ed190c

View File

@ -162,6 +162,10 @@ class FileSelectionList(QWidget):
self.twList.currentItemChanged.connect( self.currentItemChangedCB )
if self.twList.rowCount() > 0:
# since on a removal, we select row 0, make sure callback occurs if we're already there
if self.twList.currentRow() == 0:
self.currentItemChangedCB( self.twList.currentItem(), None)
print "removing 0"
self.twList.selectRow(0)
else:
self.listCleared.emit()