This commit is contained in:
kirp 2021-08-11 02:29:36 +03:00
parent c7295d7fd1
commit 5335e043e7
No known key found for this signature in database
GPG Key ID: E0277EFCA43284BE
1 changed files with 1 additions and 2 deletions

View File

@ -30,10 +30,9 @@ ImageOverlay::ImageOverlay(QPixmap image, QWidget *parent)
setWindowState(Qt::WindowFullScreen);
close_shortcut_ = new QShortcut(QKeySequence(Qt::Key_Escape), this);
connect(close_shortcut_, &QShortcut::activated, this, &ImageOverlay::closing);
connect(close_shortcut_, &QShortcut::activated, this, &ImageOverlay::closing);
connect(this, &ImageOverlay::closing, this, &ImageOverlay::close);
raise();
}