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
@linuxdude42 linuxdude42 merged commit 8d10959 into MythTV:master Jan 10, 2026
11 checks passed
@SteveErl SteveErl deleted the erlMerge29 branch January 10, 2026 19:59
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

2 participants