fixing bug with pdf not showing first pdf if changed previously

This commit is contained in:
Chris Cochrun 2022-09-29 05:34:29 -05:00
parent 6f1d2ca4fa
commit 8b6e5e2ad3

View file

@ -214,6 +214,7 @@ void Slide::changeSlide(QVariantMap item)
setText(""); setText("");
m_slideSize = 1; m_slideSize = 1;
m_slideIndex = 1; m_slideIndex = 1;
setPdfIndex(0);
qDebug() << serviceItem().value("backgroundType").toString(); qDebug() << serviceItem().value("backgroundType").toString();
if (serviceItem().value("backgroundType") == "image") { if (serviceItem().value("backgroundType") == "image") {
@ -248,9 +249,7 @@ void Slide::changeSlide(QVariantMap item)
setImageCount(pageCount); setImageCount(pageCount);
qDebug() << m_imageCount; qDebug() << m_imageCount;
m_slideSize = m_imageCount; m_slideSize = m_imageCount;
m_slideIndex = 1;
} }
setPdfIndex(0);
QStringList text = m_serviceItem.value("text").toStringList(); QStringList text = m_serviceItem.value("text").toStringList();
if (type() == "song") { if (type() == "song") {