Skip to content

Commit

Permalink
TagsWidget: Rely on QTableWidget::removeRow()
Browse files Browse the repository at this point in the history
... when removing the first row. Fixes a quirk with the value of the
new first row being invisible or lost.
  • Loading branch information
dg0yt committed Mar 10, 2021
1 parent d296151 commit 3745618
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/gui/widgets/tags_widget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,13 +206,6 @@ void TagsWidget::cellChange(int row, int column)
// Jump to previous row
tags_table->setCurrentCell(row - 1, 1);
}
else
{
// Reset current row
tags_table->item(row, 1)->setText({});
auto value_item = tags_table->item(row, 1);
value_item->setFlags(value_item->flags() & ~Qt::ItemIsEnabled);
}
}
else if (!key.isEmpty())
{
Expand Down

0 comments on commit 3745618

Please sign in to comment.