summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Stuff <billstuff2001@sbcglobal.net>2011-01-31 12:22:05 (GMT)
committer Stuart Morgan <smorgan@mythtv.org>2011-01-31 13:16:36 (GMT)
commit746ec9e11ff1e936916a82e3d402fc57b3112231 (patch)
tree73824a2525f679b09bb0ddb3396c3d0885cbe09b
parenta15c312dfddbe413981a48a81ee4e870b91af913 (diff)
Fix priority textareas not being updated when priority is increased on a list entry. Fixes #9512
Signed-off-by: Stuart Morgan <smorgan@mythtv.org>
-rw-r--r--mythtv/programs/mythfrontend/programrecpriority.cpp22
1 files changed, 20 insertions, 2 deletions
diff --git a/mythtv/programs/mythfrontend/programrecpriority.cpp b/mythtv/programs/mythfrontend/programrecpriority.cpp
index 21809d0..9b1a106 100644
--- a/mythtv/programs/mythfrontend/programrecpriority.cpp
+++ b/mythtv/programs/mythfrontend/programrecpriority.cpp
@@ -1112,12 +1112,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));
}
}
}
@@ -1573,7 +1591,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);
}