Close fullscreen overlay with out of contents click

This commit is contained in:
Konstantinos Sideris 2017-04-30 03:47:12 +03:00
parent 57332553c4
commit 41f6dbe053

View file

@ -113,4 +113,6 @@ void ImageOverlayDialog::mousePressEvent(QMouseEvent *event)
// FIXME: The main window needs double click to regain focus.
if (close_button_.contains(event->pos()))
close();
else if (!content_.contains(event->pos()))
close();
}