Skip to content

Conversation

@direc85
Copy link

@direc85 direc85 commented Nov 7, 2025

While working on something else, I ran into some compiler warnings which I decided to fix:

  • void QSortFilterProxyModel::invalidateFilter()’ is deprecated: Use begin/endFilterChange() instead
  • warning: ignoring return value of 'virtual bool QFile::open(QIODeviceBase::OpenMode)', declared with attribute 'nodiscard'

While at it I noticed a few minor improve points in the MxcImageProvider::download functions nearby, so I added a little logging and an early exit if the media cache directory can't be created. In such case there is no image file to read, and the downloaded image file couldn't be written which would also result in a failure, so I think it's logically okay.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant