Commit 8906960c authored by Scott Wheeler's avatar Scott Wheeler

Don't show the popup if we release the mouse outside of the image widget.

svn path=/trunk/kdemultimedia/juk/; revision=363287
parent de5cc8b4
......@@ -119,7 +119,9 @@ void CoverItem::update(const FileHandle &file)
void CoverItem::mouseReleaseEvent(QMouseEvent *event)
{
if(event->button() == LeftButton &&
if(event->x() >= 0 && event->y() >= 0 &&
event->x() < width() && event->y() < height() &&
event->button() == LeftButton &&
m_file.coverInfo()->hasCover())
{
m_file.coverInfo()->popup();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment