Permalink
Browse files

Fix priority textareas not being updated when priority is increased o…

…n a list entry. Fixes #9512

Signed-off-by: Stuart Morgan <smorgan@mythtv.org>
(cherry picked from commit 746ec9e)
  • Loading branch information...
1 parent 8921ded commit 4a113b09730f69d954bcad7a0c58d6a7aaed4d10 Bill Stuff committed with stuartm Jan 31, 2011
Showing with 20 additions and 2 deletions.
  1. +20 −2 mythtv/programs/mythfrontend/programrecpriority.cpp
View
22 mythtv/programs/mythfrontend/programrecpriority.cpp
@@ -1111,12 +1111,30 @@ void ProgramRecPriority::changeRecPriority(int howMuch)
{
// No need to re-fill the entire list, just update this entry
int progRecPriority = pgRecInfo->GetRecordingPriority();
+ int autorecpri = pgRecInfo->autoRecPriority;
int finalRecPriority = progRecPriority +
- pgRecInfo->autoRecPriority +
+ autorecpri +
pgRecInfo->recTypeRecPriority;
item->SetText(QString::number(progRecPriority), "progpriority");
item->SetText(QString::number(finalRecPriority), "finalpriority");
+
+ if (m_recPriorityText)
+ {
+ QString msg = QString::number(progRecPriority);
+
+ if(autorecpri != 0)
+ msg += tr(" + %1 automatic priority (%2hr)")
+ .arg(autorecpri).arg(pgRecInfo->avg_delay);
+ m_recPriorityText->SetText(msg);
+ }
+
+ if (m_recPriorityBText)
+ m_recPriorityBText->SetText(QString::number(progRecPriority +
+ autorecpri));
+
+ if (m_finalPriorityText)
+ m_finalPriorityText->SetText(QString::number(finalRecPriority));
}
}
}
@@ -1572,7 +1590,7 @@ void ProgramRecPriority::updateInfo(MythUIButtonListItem *item)
if(autorecpri != 0)
msg += tr(" + %1 automatic priority (%2hr)")
- .arg(autorecpri).arg((pgRecInfo->avg_delay));
+ .arg(autorecpri).arg(pgRecInfo->avg_delay);
m_recPriorityText->SetText(msg);
}

0 comments on commit 4a113b0

Please sign in to comment.