From c5de729635e60c97c8ba12a1f5709a7b44883e5e 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:07:29 +0100 Subject: [PATCH] Set the default button based on the current context --- .../comic_vine/comic_vine_dialog.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/YACReaderLibrary/comic_vine/comic_vine_dialog.cpp b/YACReaderLibrary/comic_vine/comic_vine_dialog.cpp index dec7140a..237519b9 100644 --- a/YACReaderLibrary/comic_vine/comic_vine_dialog.cpp +++ b/YACReaderLibrary/comic_vine/comic_vine_dialog.cpp @@ -308,6 +308,8 @@ void ComicVineDialog::showSeriesQuestion() searchButton->setHidden(true); closeButton->setVisible(true); + nextButton->setDefault(true); + toggleSkipButton(); } @@ -321,6 +323,8 @@ void ComicVineDialog::showSearchSingleComic() searchButton->setVisible(true); closeButton->setVisible(true); + searchButton->setDefault(true); + toggleSkipButton(); } @@ -332,6 +336,9 @@ void ComicVineDialog::showSearchVolume() nextButton->setHidden(true); searchButton->setVisible(true); closeButton->setVisible(true); + + searchButton->setDefault(true); + toggleSkipButton(); } @@ -351,6 +358,9 @@ void ComicVineDialog::showSelectVolume() nextButton->setVisible(true); searchButton->setHidden(true); closeButton->setVisible(true); + + nextButton->setDefault(true); + toggleSkipButton(); } @@ -365,6 +375,9 @@ void ComicVineDialog::showSelectComic(const QString &json) nextButton->setVisible(true); searchButton->setHidden(true); closeButton->setVisible(true); + + nextButton->setDefault(true); + toggleSkipButton(); } @@ -380,6 +393,9 @@ void ComicVineDialog::showSortVolumeComics(const QString &json) nextButton->setVisible(true); searchButton->setHidden(true); closeButton->setVisible(true); + + nextButton->setDefault(true); + toggleSkipButton(); }