Ticket #8250: mythgallery-fix-jumppoint.patch

File mythgallery-fix-jumppoint.patch, 801 bytes (added by trebor_s@…, 14 years ago)

mythgallery jumppoint fix

  • mythgallery/mythgallery/iconview.cpp

    old new  
    461461               handled = false;
    462462       }
    463463
    464         if (action == "ESCAPE")
    465             handled = HandleEscape();
     464        if (action == "ESCAPE")
     465        {
     466            if (!GetMythMainWindow()->IsExitingToMain())
     467                         {
     468               handled = HandleEscape();
     469            }
     470                         else
     471                         {
     472                                while (true)
     473                                {
     474                                        QDir currentDir(m_currDir);
     475                                        QDir rootDir(m_galleryDir);
     476                                    if (currentDir != rootDir)
     477                                                HandleSubDirEscape(m_galleryDir);
     478                                        else
     479                                                break;
     480                                }
     481                                handled = HandleEscape();
     482                        }
     483        }
    466484   }
    467485
    468486   if (!handled && MythScreenType::keyPressEvent(event))