mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -04:00
new status for ComicVineDialog
This commit is contained in:
parent
5a08e109f4
commit
791662a01a
@ -156,6 +156,7 @@ void ComicVineDialog::show()
|
|||||||
searchVolume(title);
|
searchVolume(title);
|
||||||
status = AutoSearching;
|
status = AutoSearching;
|
||||||
mode = SingleComic;
|
mode = SingleComic;
|
||||||
|
|
||||||
}else if(comics.length()>1)
|
}else if(comics.length()>1)
|
||||||
{
|
{
|
||||||
titleHeader->setSubTitle(tr("%1 comics selected").arg(comics.length()));
|
titleHeader->setSubTitle(tr("%1 comics selected").arg(comics.length()));
|
||||||
@ -194,6 +195,9 @@ void ComicVineDialog::debugClientResults(const QString & string)
|
|||||||
case SingleComic: case SingleComicInList:
|
case SingleComic: case SingleComicInList:
|
||||||
if(p.getNumResults() == 0)
|
if(p.getNumResults() == 0)
|
||||||
showSearchSingleComic();
|
showSearchSingleComic();
|
||||||
|
else
|
||||||
|
if(status == SearchingVolume)
|
||||||
|
showSelectVolume(string);
|
||||||
else
|
else
|
||||||
showSelectComic(string);
|
showSelectComic(string);
|
||||||
break;
|
break;
|
||||||
@ -246,6 +250,8 @@ void ComicVineDialog::showSearchVolume()
|
|||||||
|
|
||||||
void ComicVineDialog::showSelectVolume(const QString & json)
|
void ComicVineDialog::showSelectVolume(const QString & json)
|
||||||
{
|
{
|
||||||
|
status = SelectingSeries;
|
||||||
|
|
||||||
content->setCurrentWidget(selectVolumeWidget);
|
content->setCurrentWidget(selectVolumeWidget);
|
||||||
|
|
||||||
backButton->setVisible(true);
|
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(searchResult(QString)),this,SLOT(debugClientResults(QString)));
|
||||||
connect(comicVineClient,SIGNAL(finished()),comicVineClient,SLOT(deleteLater()));
|
connect(comicVineClient,SIGNAL(finished()),comicVineClient,SLOT(deleteLater()));
|
||||||
comicVineClient->search(v);
|
comicVineClient->search(v);
|
||||||
|
|
||||||
|
status = SearchingVolume;
|
||||||
}
|
}
|
||||||
|
|
||||||
void ComicVineDialog::launchSearchVolume()
|
void ComicVineDialog::launchSearchVolume()
|
||||||
|
@ -62,7 +62,9 @@ private:
|
|||||||
AutoSearching,
|
AutoSearching,
|
||||||
AskingForInfo,
|
AskingForInfo,
|
||||||
SelectingComic,
|
SelectingComic,
|
||||||
SelectingSeries
|
SelectingSeries,
|
||||||
|
SearchingSingleComic,
|
||||||
|
SearchingVolume
|
||||||
};
|
};
|
||||||
|
|
||||||
ScrapperMode mode;
|
ScrapperMode mode;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user