Skip to content

Commit

Permalink
Fix a possible crash clicking with nothing loaded.
Browse files Browse the repository at this point in the history
  • Loading branch information
ddennedy committed Feb 28, 2015
1 parent 02d0170 commit 4e80b3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/glwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ void GLWidget::mouseMoveEvent(QMouseEvent* event)
return;
if ((event->pos() - m_dragStart).manhattanLength() < QApplication::startDragDistance())
return;
if (!MLT.isClip())
if (!MLT.producer() || !MLT.isClip())
return;
QDrag *drag = new QDrag(this);
QMimeData *mimeData = new QMimeData;
Expand Down

0 comments on commit 4e80b3f

Please sign in to comment.