Ticket #2983: 2983-v2.patch

File 2983-v2.patch, 940 bytes (added by danielk, 15 years ago)

Updated patch, it appears default handler is only used to handle ESC (LEFT if arrow accellerations is enabled)

  • libs/libmyth/settings.cpp

     
    15401540    switch(e->key()) {
    15411541    case Key_Escape:
    15421542        reject();
    1543         emit popupDone();
    15441543        break;
    15451544    default:
    15461545        MythDialog::keyPressEvent(e);
  • libs/libmyth/mythdialogs.cpp

     
    438438
    439439        if ((action == "ESCAPE") || (arrowAccel && action == "LEFT"))
    440440        {
    441             emit popupDone();
     441            reject();
    442442            handled = true;
    443443        }
    444444    }
     
    505505
    506506void MythPopupBox::defaultExitHandler()
    507507{
    508     done(-1);
    509508}
    510509
    511510void MythPopupBox::showOkPopup(MythMainWindow *parent, QString title,