Fix link tooltips showing up blank instead of with text-only (#4597)

Co-authored-by: Felanbird <41973452+Felanbird@users.noreply.github.com>
This commit is contained in:
pajlada 2023-05-02 22:33:01 +02:00 committed by GitHub
parent 9d71f9017f
commit f39d43faef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -5,6 +5,7 @@
## Slated for 2.4.3
- Bugfix: Fixed the menu warping on macOS on Qt6. (#4595)
- Bugfix: Fixed link tooltips not showing unless the thumbnail setting was enabled. (#4597)
## 2.4.3 Beta

View file

@ -1774,9 +1774,10 @@ void ChannelView::mouseMoveEvent(QMouseEvent *event)
});
}
auto thumbnailSize = getSettings()->thumbnailSize;
if (!thumbnailSize)
if (thumbnailSize == 0)
{
tooltipWidget->clearEntries();
// "Show thumbnails" is set to "Off", show text only
tooltipWidget->setOne({nullptr, element->getTooltip()});
}
else
{