add missing imageformats and fix slot disconnect error

This commit is contained in:
Syping 2018-02-09 22:28:31 +01:00
parent 4af7e2e819
commit fbc9e66de2
4 changed files with 34 additions and 9 deletions

View file

@ -604,7 +604,11 @@ void PictureDialog::renderOverlayPicture()
void PictureDialog::setSnapmaticPicture(SnapmaticPicture *picture, bool readOk, bool _indexed, int _index)
{
if (smpic != nullptr) smpic->disconnect();
if (smpic != nullptr)
{
QObject::disconnect(smpic, SIGNAL(updated()), this, SLOT(updated()));
QObject::disconnect(smpic, SIGNAL(customSignal(QString)), this, SLOT(customSignal(QString)));
}
snapmaticPicture = QImage();
indexed = _indexed;
index = _index;