def updateThumbnail(self):
        iconfilename = utils.iconPathToFull(self.modinfo.icon)
        if iconfilename == "":
            return False
        if os.path.splitext(iconfilename)[1].lower() == ".dds":
            old = iconfilename
            iconfilename = os.path.join(
                self.modDir,
                os.path.splitext(os.path.basename(iconfilename))[0] + ".png",
            )
            succes = utils.generateThumbnail(old, iconfilename)
            if not succes:
                QtWidgets.QMessageBox.information(
                    self.client,
                    "Invalid Icon File",
                    (
                        "Because FAF can't read DDS files, it tried to convert"
                        " it to a png. This failed. Try something else"
                    ),
                )
                return False
        try:
            self.Thumbnail.setPixmap(util.THEME.pixmap(iconfilename, False))
        except BaseException:
            QtWidgets.QMessageBox.information(
                self.client,
                "Invalid Icon File",
                "This was not a valid icon file. Please pick a png or jpeg",
            )
            return False
        self.modinfo.thumbnail = utils.fullPathToIcon(iconfilename)
        self.IconURI.setText(iconfilename)
        return True