mirror of
https://github.com/fergalmoran/picard.git
synced 2026-01-06 16:44:06 +00:00
Use colpos('cover') instead of assuming the cover column is the last one
This commit is contained in:
@@ -639,7 +639,7 @@ class AlbumSearchDialog(SearchDialog):
|
||||
if not self.table:
|
||||
return
|
||||
|
||||
cover_cell = self.table.cellWidget(row, len(self.table_headers) - 1)
|
||||
cover_cell = self.table.cellWidget(row, self.colpos('cover'))
|
||||
|
||||
if error:
|
||||
cover_cell.not_found()
|
||||
@@ -677,7 +677,7 @@ class AlbumSearchDialog(SearchDialog):
|
||||
Args:
|
||||
row -- Album's row in results table
|
||||
"""
|
||||
cover_cell = self.table.cellWidget(row, len(self.table_headers) - 1)
|
||||
cover_cell = self.table.cellWidget(row, self.colpos('cover'))
|
||||
|
||||
if error:
|
||||
cover_cell.not_found()
|
||||
|
||||
Reference in New Issue
Block a user