commit 0f4df3df5a3a0d08343010ab4701bc57b628e341 parent c5d3ee003940b8965a8e8d3a76822bcda4994b14 Author: cfillion <cfillion@users.noreply.github.com> Date: Tue, 24 Oct 2017 02:27:16 -0700 browser: avoid updating the top right button at every package whose action is cleared while in the Queued tab on Windows Diffstat:
M | src/browser.cpp | | | 7 | ++++--- |
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/browser.cpp b/src/browser.cpp @@ -743,10 +743,8 @@ void Browser::updateAction(const int index) else if(it == m_actions.end()) m_actions.push_back(entry); - if(currentView() == QueuedView && !hasAction(entry)) { + if(currentView() == QueuedView && !hasAction(entry)) m_list->removeRow(index); - updateDisplayLabel(); - } else m_list->row(index)->setCell(0, entry->displayState()); @@ -778,6 +776,9 @@ void Browser::listDo(const function<void (int)> &func, const vector<int> &indexe offset++; lastSize = newSize; } + + if(offset) // rows were deleted + updateDisplayLabel(); } auto Browser::currentView() const -> View