Close fullscreen overlay with out of contents click
This commit is contained in:
parent
24e7c7014e
commit
69113dad77
@ -128,4 +128,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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user