diff --git a/YACReaderLibrary/comic_vine/comic_vine_dialog.cpp b/YACReaderLibrary/comic_vine/comic_vine_dialog.cpp index 3ea37523..359d43e0 100644 --- a/YACReaderLibrary/comic_vine/comic_vine_dialog.cpp +++ b/YACReaderLibrary/comic_vine/comic_vine_dialog.cpp @@ -156,6 +156,7 @@ void ComicVineDialog::show() searchVolume(title); status = AutoSearching; mode = SingleComic; + }else if(comics.length()>1) { titleHeader->setSubTitle(tr("%1 comics selected").arg(comics.length())); @@ -195,7 +196,10 @@ void ComicVineDialog::debugClientResults(const QString & string) if(p.getNumResults() == 0) showSearchSingleComic(); else - showSelectComic(string); + if(status == SearchingVolume) + showSelectVolume(string); + else + showSelectComic(string); break; case Volume: if(p.getNumResults() == 0) @@ -246,6 +250,8 @@ void ComicVineDialog::showSearchVolume() void ComicVineDialog::showSelectVolume(const QString & json) { + status = SelectingSeries; + content->setCurrentWidget(selectVolumeWidget); backButton->setVisible(true); @@ -296,6 +302,8 @@ void ComicVineDialog::searchVolume(const QString &v) connect(comicVineClient,SIGNAL(searchResult(QString)),this,SLOT(debugClientResults(QString))); connect(comicVineClient,SIGNAL(finished()),comicVineClient,SLOT(deleteLater())); comicVineClient->search(v); + + status = SearchingVolume; } void ComicVineDialog::launchSearchVolume() diff --git a/YACReaderLibrary/comic_vine/comic_vine_dialog.h b/YACReaderLibrary/comic_vine/comic_vine_dialog.h index 220c46b3..80664fc0 100644 --- a/YACReaderLibrary/comic_vine/comic_vine_dialog.h +++ b/YACReaderLibrary/comic_vine/comic_vine_dialog.h @@ -62,7 +62,9 @@ private: AutoSearching, AskingForInfo, SelectingComic, - SelectingSeries + SelectingSeries, + SearchingSingleComic, + SearchingVolume }; ScrapperMode mode;