mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 23:28:14 +03:00
Remove all rows in the table widget
`clearContents()` will leave the number of rows as is. This was causing a segfault when trying to loop over the items of the widget. Signed-off-by: Samir Benmendil <me@rmz.io>
This commit is contained in:
parent
4a2b91a043
commit
e44a2302de
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ void IgnoreListEditor::slotRemoveCurrentItem()
|
|||
|
||||
void IgnoreListEditor::slotRemoveAllItems()
|
||||
{
|
||||
ui->tableWidget->clearContents();
|
||||
ui->tableWidget->setRowCount(0);
|
||||
if (qobject_cast<GeneralSettings *>(parent()))
|
||||
setupTableReadOnlyItems();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue