diff options
author | Harshit Maurya <hmaurya999@gmail.com> | 2020-05-15 23:29:43 +0530 |
---|---|---|
committer | Harshit Maurya <hmaurya999@gmail.com> | 2020-05-16 02:17:43 +0530 |
commit | dd617cf42582ff95de7072629d97fb8a97b61c3c (patch) | |
tree | f18c91fb7d7789759eaa9214d2d9124fe9f9aca2 | |
parent | 2538208c71d4daecb5724661a01dce08b5275137 (diff) |
wwaveformviewer: limit cue menu to hotcues
-rw-r--r-- | src/widget/wwaveformviewer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widget/wwaveformviewer.cpp b/src/widget/wwaveformviewer.cpp index a01e9b5424..f12609855d 100644 --- a/src/widget/wwaveformviewer.cpp +++ b/src/widget/wwaveformviewer.cpp @@ -136,7 +136,7 @@ void WWaveformViewer::mouseMoveEvent(QMouseEvent* event) { } else if (!isPlaying()) { WaveformMarkPointer pMark; pMark = m_waveformWidget->getCueMarkAtPoint(event->pos()); - if (pMark) { + if (pMark && getCuePointerFromCueMark(pMark)) { if (!m_pHoveredMark) { m_pHoveredMark = pMark; highlightMark(pMark); @@ -257,7 +257,7 @@ void WWaveformViewer::setWaveformWidget(WaveformWidgetAbstract* waveformWidget) } CuePointer WWaveformViewer::getCuePointerFromCueMark(WaveformMarkPointer pMark) { - if (pMark) { + if (pMark && pMark->getHotCue() != Cue::kNoHotCue) { QList<CuePointer> cueList = m_waveformWidget->getTrackInfo()->getCuePoints(); for (const auto& pCue : cueList) { if (pCue->getHotCue() == pMark->getHotCue()) { |