Skip to content

Conversation

@SteveErl
Copy link
Contributor

@SteveErl SteveErl commented Jan 1, 2026

MythUIImage::SetFilename() stores the given filename into m_imageProperties.m_filename. MythUIImage::GetFilename() was getting the filename from 'm_filename'. As a result, it always returned an empty string. The GetFilename() method has been updated to retrieve the filename from the same place where SetFilename() stores it. In addition, the 'm_filename' data member has been eliminated since there are no users of it anymore.

Resolves: #1138

Checklist

MythUIImage::SetFilename() stores the given filename
into m_imageProperties.m_filename. MythUIImage::GetFilename()
was getting the filename from 'm_filename'. As a result,
these almost never match. The GetFilename() method
has been updated to retrieve the filename from the
same place where SetFilename() stores it. In adddition,
the 'm_filename' data member has been eliminated since
there are no users of it anymore.

Resolves: MythTV#1138
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.

MythUIImage GetFilename method always fails

1 participant