ProcessManager: Make the toolbar actions work again.

We can't grab at the ProcessTableModel directly anymore since we have a
sorting proxy model in the middle now.
This commit is contained in:
Andreas Kling 2019-03-10 02:02:37 +01:00
parent 2336d43abc
commit 0b32ab12f1
Notes: sideshowbarker 2024-07-19 15:05:51 +09:00
4 changed files with 8 additions and 22 deletions

View file

@ -199,10 +199,3 @@ void ProcessTableModel::update()
did_update();
}
pid_t ProcessTableModel::selected_pid() const
{
if (!selected_index().is_valid())
return -1;
return m_pids[selected_index().row()];
}