- 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();
+ }