Ticket #6315: 00-6315-mythwelcome-lircmenuhack.patch
File 00-6315-mythwelcome-lircmenuhack.patch, 881 bytes (added by , 17 years ago) |
---|
-
mythtv/programs/mythwelcome/welcomedialog.cpp
613 613 614 614 void WelcomeDialog::showMenu(void) 615 615 { 616 QString command = QString("ret=`ps cax | grep -c %1`; exit $ret") 617 .arg("mythfrontend"); 618 bool res = myth_system(command, 619 MYTH_SYSTEM_DONT_BLOCK_LIRC | 620 MYTH_SYSTEM_DONT_BLOCK_JOYSTICK_MENU); 621 // Hack to stop menu running if mythfrontend is running too 622 // ret=num processes running (0 if not) 623 if (res > 0) 624 return; 625 616 626 MythScreenStack *popupStack = GetMythMainWindow()->GetStack("popup stack"); 617 627 618 628 m_menuPopup = new MythDialogBox("Menu", popupStack, "actionmenu");