Ticket #35: mythvideo.focusButton.2.diff

File mythvideo.focusButton.2.diff, 1.7 KB (added by Robert Tsai <rtsai1111>, 19 years ago)

v2

  • mythvideo/mythvideo/videobrowser.cpp

     
    138138        }
    139139        else
    140140        {
    141             if (!isFileBrowser)
     141            if (isFileBrowser)
     142                focusButton = addDests();
     143            else
    142144                focusButton = popup->addButton(tr("Filter Display"), this, SLOT(slotDoFilter()));
    143            
    144             QButton* tempButton = addDests();
    145             if (!focusButton)
    146                 focusButton = tempButton;
    147145        }
    148146       
    149147        popup->addButton(tr("Cancel"), this, SLOT(slotDoCancel()));
    150148       
    151149        popup->ShowPopup(this, SLOT(slotDoCancel()));
    152150   
    153         if (focusButton)
    154             focusButton->setFocus();
     151        focusButton->setFocus();
    155152    }
    156153   
    157154}
  • mythvideo/mythvideo/videogallery.cpp

     
    9191
    9292        if (action == "SELECT")
    9393        {
    94             handled = true;
    9594            handled = handleSelect();
    9695        }
    9796        else if ( (action == "UP")  || (action == "DOWN") ||
     
    565564        }
    566565        else
    567566        {
    568             if (!isFileBrowser)
     567            if (isFileBrowser)
     568                focusButton = addDests();
     569            else
    569570                focusButton = popup->addButton(tr("Filter Display"), this, SLOT(slotDoFilter()));
    570             addDests();
    571571        }
    572572
    573573        popup->addButton(tr("Cancel"), this, SLOT(slotDoCancel()));