Fixed context menu position mapping in "processing" dialog.
This commit is contained in:
parent
a7126f42d2
commit
623d149917
@ -551,13 +551,13 @@ void ProcessingDialog::contextMenuTriggered(const QPoint &pos)
|
|||||||
|
|
||||||
void ProcessingDialog::contextMenuDetailsActionTriggered(void)
|
void ProcessingDialog::contextMenuDetailsActionTriggered(void)
|
||||||
{
|
{
|
||||||
QModelIndex index = view_log->indexAt(view_log->mapFromGlobal(m_contextMenu->pos()));
|
QModelIndex index = view_log->indexAt(view_log->viewport()->mapFromGlobal(m_contextMenu->pos()));
|
||||||
logViewDoubleClicked(index.isValid() ? index : view_log->currentIndex());
|
logViewDoubleClicked(index.isValid() ? index : view_log->currentIndex());
|
||||||
}
|
}
|
||||||
|
|
||||||
void ProcessingDialog::contextMenuShowFileActionTriggered(void)
|
void ProcessingDialog::contextMenuShowFileActionTriggered(void)
|
||||||
{
|
{
|
||||||
QModelIndex index = view_log->indexAt(view_log->mapFromGlobal(m_contextMenu->pos()));
|
QModelIndex index = view_log->indexAt(view_log->viewport()->mapFromGlobal(m_contextMenu->pos()));
|
||||||
const QUuid &jobId = m_progressModel->getJobId(index.isValid() ? index : view_log->currentIndex());
|
const QUuid &jobId = m_progressModel->getJobId(index.isValid() ? index : view_log->currentIndex());
|
||||||
QString filePath = m_playList.value(jobId, QString());
|
QString filePath = m_playList.value(jobId, QString());
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user