Havoc icon indicating copy to clipboard operation
Havoc copied to clipboard

Multi row delete in client

Open jabra- opened this issue 1 year ago • 1 comments

Contact Details

No response

What happened?

  1. Run demon exe multiple times.
  2. In the client select multiple rows and click remove.

Desired state: remove all rows selected and removes from the graph as well.

Current state: client removes one row at a time.

Did You Do a Pull First?

Latest (You performed a pull first)

Did You Try With the Dev Branch?

Yes (You tried using the dev branch but the problem persist)

Relevant log output

No response

Did You Read Over Your Issue First?

  • [X] I declare I made an effort and provided the necessary information for replication of the issue.

jabra- avatar Dec 30 '23 13:12 jabra-

roughly something like this (it just needs the graph part added):

QList<QTableWidgetItem*> selected_items = SessionTableWidget->SessionTableWidget->selectedItems();
while( !selected_items.isEmpty() )
{
    QTableWidgetItem *item = selected_items.at(0);
    SessionTableWidget->SessionTableWidget->removeRow(item->row());
    selected_items = SessionTableWidget->SessionTableWidget->selectedItems();
}

jabra- avatar Dec 31 '23 01:12 jabra-