Skip to content

Commit 3745618

Browse files
committed
TagsWidget: Rely on QTableWidget::removeRow()
... when removing the first row. Fixes a quirk with the value of the new first row being invisible or lost.
1 parent d296151 commit 3745618

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/gui/widgets/tags_widget.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -206,13 +206,6 @@ void TagsWidget::cellChange(int row, int column)
206206
// Jump to previous row
207207
tags_table->setCurrentCell(row - 1, 1);
208208
}
209-
else
210-
{
211-
// Reset current row
212-
tags_table->item(row, 1)->setText({});
213-
auto value_item = tags_table->item(row, 1);
214-
value_item->setFlags(value_item->flags() & ~Qt::ItemIsEnabled);
215-
}
216209
}
217210
else if (!key.isEmpty())
218211
{

0 commit comments

Comments
 (0)