Ticket #35: mythvideo.focusButton.2.diff
File mythvideo.focusButton.2.diff, 1.7 KB (added by , 20 years ago) |
---|
-
mythvideo/mythvideo/videobrowser.cpp
138 138 } 139 139 else 140 140 { 141 if (!isFileBrowser) 141 if (isFileBrowser) 142 focusButton = addDests(); 143 else 142 144 focusButton = popup->addButton(tr("Filter Display"), this, SLOT(slotDoFilter())); 143 144 QButton* tempButton = addDests();145 if (!focusButton)146 focusButton = tempButton;147 145 } 148 146 149 147 popup->addButton(tr("Cancel"), this, SLOT(slotDoCancel())); 150 148 151 149 popup->ShowPopup(this, SLOT(slotDoCancel())); 152 150 153 if (focusButton) 154 focusButton->setFocus(); 151 focusButton->setFocus(); 155 152 } 156 153 157 154 } -
mythvideo/mythvideo/videogallery.cpp
91 91 92 92 if (action == "SELECT") 93 93 { 94 handled = true;95 94 handled = handleSelect(); 96 95 } 97 96 else if ( (action == "UP") || (action == "DOWN") || … … 565 564 } 566 565 else 567 566 { 568 if (!isFileBrowser) 567 if (isFileBrowser) 568 focusButton = addDests(); 569 else 569 570 focusButton = popup->addButton(tr("Filter Display"), this, SLOT(slotDoFilter())); 570 addDests();571 571 } 572 572 573 573 popup->addButton(tr("Cancel"), this, SLOT(slotDoCancel()));