Permalink
Browse files

minor improvement

This was a legacy of another implementation of DeleteAllRegistrations, and we don't need to remove the screen from the deleted screen list as we go
  • Loading branch information...
jyavenard committed Jul 9, 2013
1 parent 952ef9b commit e06a76596e3891b27174770fa1654420346482c8
Showing with 1 addition and 2 deletions.
  1. +1 −2 mythtv/libs/libmythui/mythuinotificationcenter.cpp
@@ -768,13 +768,12 @@ void NCPrivate::DeleteAllRegistrations(void)
{
QMap<int, MythUINotificationScreen*>::iterator it = m_registrations.begin();
for (; it != m_registrations.end();)
for (; it != m_registrations.end(); ++it)
{
if (*it)
{
m_deletedScreens.append(*it);
}
it = m_registrations.erase(it);
}
m_registrations.clear();
}

0 comments on commit e06a765

Please sign in to comment.