summaryrefslogtreecommitdiffstats
path: root/abs/mv-core/myth/stable/mythtv-release-fixes/pop_be_restart.cpp.patch
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2009-08-17 17:16:31 (GMT)
committerJames Meyer <james.meyer@operamail.com>2009-08-17 17:16:31 (GMT)
commit997dbedae9ea47fbb46ec15f8827cf1a8065c11e (patch)
treee20e579880f339682d8ede709369769269a365e0 /abs/mv-core/myth/stable/mythtv-release-fixes/pop_be_restart.cpp.patch
parentda98b0f401f135cb5a04270dbfc46c5dafc43d9d (diff)
downloadlinhes_pkgbuild-997dbedae9ea47fbb46ec15f8827cf1a8065c11e.zip
linhes_pkgbuild-997dbedae9ea47fbb46ec15f8827cf1a8065c11e.tar.gz
linhes_pkgbuild-997dbedae9ea47fbb46ec15f8827cf1a8065c11e.tar.bz2
mv-core: bring it up to date so that it works again
Diffstat (limited to 'abs/mv-core/myth/stable/mythtv-release-fixes/pop_be_restart.cpp.patch')
-rw-r--r--abs/mv-core/myth/stable/mythtv-release-fixes/pop_be_restart.cpp.patch51
1 files changed, 51 insertions, 0 deletions
diff --git a/abs/mv-core/myth/stable/mythtv-release-fixes/pop_be_restart.cpp.patch b/abs/mv-core/myth/stable/mythtv-release-fixes/pop_be_restart.cpp.patch
new file mode 100644
index 0000000..a7a5326
--- /dev/null
+++ b/abs/mv-core/myth/stable/mythtv-release-fixes/pop_be_restart.cpp.patch
@@ -0,0 +1,51 @@
+--- libs/libmythui/myththemedmenu.cpp.orig 2008-03-17 15:54:00.000000000 -0500
++++ libs/libmythui/myththemedmenu.cpp 2008-03-17 15:54:09.000000000 -0500
+@@ -2615,12 +2615,14 @@
+ m_menuPopup->SetReturnEvent(this,"popmenu_exit");
+ m_menuPopup->AddButton("Shutdown");
+ m_menuPopup->AddButton("Reboot");
++ m_menuPopup->AddButton("MythBackend restart");
+ m_menuPopup->AddButton("About");
+ m_menuPopup->AddButton("Cancel");
+ }
+ else
+ {
+ m_menuPopup->SetReturnEvent(this,"popmenu_noexit");
++ m_menuPopup->AddButton("MythBackend restart");
+ m_menuPopup->AddButton("About");
+ m_menuPopup->AddButton("Cancel");
+ }
+@@ -2655,6 +2657,11 @@
+ }
+ }
+
++void MythThemedMenu::Restartmythbackend()
++{
++ system("/usr/MythVantage/bin/mythbeselect -restart");
++}
++
+ void MythThemedMenu::customEvent(QCustomEvent *event)
+ {
+ if (event->type() == kMythDialogBoxCompletionEventType)
+@@ -2684,6 +2691,10 @@
+
+ if (buttonnum == 2)
+ {
++ Restartmythbackend();
++ }
++ if (buttonnum == 3)
++ {
+ aboutScreen();
+ }
+ }
+@@ -2691,6 +2702,10 @@
+ if (resultid == "popmenu_noexit")
+ {
+ if (buttonnum == 0)
++ {
++ Restartmythbackend();
++ }
++ if (buttonnum == 1)
+ aboutScreen();
+ }
+