Ticket #9509: dir_path_fix.patch

File dir_path_fix.patch, 641 bytes (added by mythtv@…, 9 years ago)

Patch to fix directory name calculation

  • mythplugins/mythgallery/mythgallery/iconview.cpp

    diff --git a/mythplugins/mythgallery/mythgallery/iconview.cpp b/mythplugins/mythgallery/mythgallery/iconview.cpp
    index ea8e766..06e9856 100644
    a b bool IconView::HandleMediaEscape(MediaMonitor *mon) 
    662662
    663663static bool is_subdir(const QDir &parent, const QDir &subdir)
    664664{
    665     QString pstr = parent.canonicalPath();
    666     QString cstr = subdir.canonicalPath();
     665    QString pstr = QDir::cleanPath(parent.path());
     666    QString cstr = QDir::cleanPath(subdir.path());
    667667    bool ret = !cstr.indexOf(pstr);
    668668
    669669    return ret;