Commit 5379ac6b authored by John Tourtellott's avatar John Tourtellott
Browse files

Don't allow concurrent downloads

parent 47f964e9
Pipeline #248388 passed with stage
......@@ -377,6 +377,12 @@ void qtNewtFileBrowserWidget::onScratchClicked()
void qtNewtFileBrowserWidget::contextMenuEvent(QContextMenuEvent* event)
// If download in progress, don't display the context menu
if (this->ui->m_progressBar->isVisible())
// Get selected row
auto pos = this->ui->m_tableView->viewport()->mapFromGlobal(event->globalPos());
int row = this->ui->m_tableView->rowAt(pos.y());
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment