From 96019a8592788932443fe0d0efc8ea44af2cf948 Mon Sep 17 00:00:00 2001 From: Pan Zhang Date: Fri, 26 Sep 2025 10:27:41 +0800 Subject: informationpanelcontent: prevent repeated disabled effect on previews When switching files quickly in the Information Panel, the preview pixmap could appear progressively brighter/whiter. This happened because markOutdatedPreview() was applying KIconEffect::toDisabled() multiple times on the same pixmap while a preview job was still pending. This patch fixes the issue by: - Tracking the URL that was last disabled, and only applying the disabled effect once per URL. - Clearing the disabled state whenever a new preview job starts or when a new pixmap is shown. With this change, the "disabled preview" effect is preserved (still useful for slow HDD or network filesystems), but the progressive white-out artifact no longer occurs when navigating rapidly. BUG: 507844 --- src/panels/information/informationpanelcontent.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/panels/information/informationpanelcontent.h') diff --git a/src/panels/information/informationpanelcontent.h b/src/panels/information/informationpanelcontent.h index 58adfb9c0..e305eddde 100644 --- a/src/panels/information/informationpanelcontent.h +++ b/src/panels/information/informationpanelcontent.h @@ -154,6 +154,7 @@ private: QDialogButtonBox *m_configureButtons; bool m_isVideo; + QUrl m_disabledPreviewUrl; }; #endif // INFORMATIONPANELCONTENT_H -- cgit v1.3