From 5459ff78cfc00133bdcc6d670e0302087e24bfbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Sat, 6 Mar 2021 18:02:41 +0100 Subject: [PATCH] Disable close button as the default when pressing enter It can be triggered using ESC --- YACReaderLibrary/comic_vine/comic_vine_dialog.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/YACReaderLibrary/comic_vine/comic_vine_dialog.cpp b/YACReaderLibrary/comic_vine/comic_vine_dialog.cpp index f922fa83..036d494d 100644 --- a/YACReaderLibrary/comic_vine/comic_vine_dialog.cpp +++ b/YACReaderLibrary/comic_vine/comic_vine_dialog.cpp @@ -57,6 +57,9 @@ void ComicVineDialog::doLayout() searchButton = new QPushButton(tr("search")); closeButton = new QPushButton(tr("close")); + closeButton->setDefault(false); + closeButton->setAutoDefault(false); + skipButton->setStyleSheet(dialogButtonsStyleSheet); backButton->setStyleSheet(dialogButtonsStyleSheet); nextButton->setStyleSheet(dialogButtonsStyleSheet);