projects
/
pulseview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e95fb8e
)
CursorHeader: Accept TimeItems not providing a Popup
author
Joel Holdsworth
<joel@airwebreathe.org.uk>
Mon, 8 Dec 2014 23:25:26 +0000
(23:25 +0000)
committer
Uwe Hermann
<uwe@hermann-uwe.de>
Wed, 10 Dec 2014 17:06:16 +0000
(18:06 +0100)
pv/view/cursorheader.cpp
patch
|
blob
|
history
diff --git
a/pv/view/cursorheader.cpp
b/pv/view/cursorheader.cpp
index 22c1259f99622fb94d53d74ab41098f0ff265ac7..7fc02add408c19438f6c3ea4bce980cd9dc5db64 100644
(file)
--- a/
pv/view/cursorheader.cpp
+++ b/
pv/view/cursorheader.cpp
@@
-132,10
+132,12
@@
void CursorHeader::mouseReleaseEvent(QMouseEvent *)
if (!dragging_ && mouse_down_item_) {
Popup *const p = mouse_down_item_->create_popup(&view_);
- const QPoint arrpos(mouse_down_item_->get_x(),
- height() - BaselineOffset);
- p->set_position(mapToGlobal(arrpos), Popup::Bottom);
- p->show();
+ if (p) {
+ const QPoint arrpos(mouse_down_item_->get_x(),
+ height() - BaselineOffset);
+ p->set_position(mapToGlobal(arrpos), Popup::Bottom);
+ p->show();
+ }
}
dragging_ = false;