Ticket #4542: file_name_with_dot.patch

File file_name_with_dot.patch, 863 bytes (added by jesus.chumillas@…, 12 years ago)
  • mythgallery/mythgallery/galleryutil.cpp

    diff -Naur mythplugins/mythgallery/mythgallery/galleryutil.cpp mythplugins_personal/mythgallery/mythgallery/galleryutil.cpp
    old new  
    4646bool GalleryUtil::isImage(const char* filePath)
    4747{
    4848    QFileInfo fi(filePath);
    49     return !fi.isDir() && IMAGE_FILENAMES.find(fi.extension()) != -1;
     49    return !fi.isDir() && IMAGE_FILENAMES.find(fi.extension(FALSE)) != -1;
    5050}
    5151
    5252bool GalleryUtil::isMovie(const char* filePath)
    5353{
    5454    QFileInfo fi(filePath);
    55     return !fi.isDir() && MOVIE_FILENAMES.find(fi.extension()) != -1;
     55    return !fi.isDir() && MOVIE_FILENAMES.find(fi.extension(FALSE)) != -1;
    5656}
    5757
    5858long GalleryUtil::GetNaturalRotation(const char* filePath)