Disable close button as the default when pressing enter

It can be triggered using ESC
This commit is contained in:
Luis Ángel San Martín 2021-03-06 18:02:41 +01:00
parent b5251f9416
commit 5459ff78cf

View File

@ -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);