Fixed an issue where the media viewer navigation sounds would sometimes not play.

This commit is contained in:
Leon Styhre 2021-05-16 23:48:03 +02:00
parent 65fea14a3c
commit cc0b9fdf87

View file

@ -273,6 +273,8 @@ void MediaViewer::showImage(int index)
if (mImage) if (mImage)
return; return;
mDisplayingImage = true;
if (!mImageFiles.empty() && mImageFiles.size() >= index) { if (!mImageFiles.empty() && mImageFiles.size() >= index) {
mImage = new ImageComponent(mWindow, false, false); mImage = new ImageComponent(mWindow, false, false);
mImage->setImage(mImageFiles[index]); mImage->setImage(mImageFiles[index]);