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:28:36 (GMT)
commit4a113b09730f69d954bcad7a0c58d6a7aaed4d10 (patch)
treeb663410c255acff52553e7c6da70e27596c6d2e4
parent8921ded85a092988be40913750530744bbd8aa34 (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> (cherry picked from commit 746ec9e11ff1e936916a82e3d402fc57b3112231)
-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 27edb05..329e17b 100644
--- a/mythtv/programs/mythfrontend/programrecpriority.cpp
+++ b/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);
}