Permalink
Browse files

Make mythgallery allow symlinked dir structure

Fixes #9509.  Patch from the ticket.

Signed-off-by: Gavin Hurlbut <ghurlbut@mythtv.org>
  • Loading branch information...
1 parent 35b8a53 commit bedc054074fff2e4d5d8807fad4d7906ab5f5d4b mythtv@pasher.org committed with Beirdo Jul 27, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 mythplugins/mythgallery/mythgallery/iconview.cpp
@@ -654,8 +654,8 @@ bool IconView::HandleMediaEscape(MediaMonitor *mon)
static bool is_subdir(const QDir &parent, const QDir &subdir)
{
- QString pstr = parent.canonicalPath();
- QString cstr = subdir.canonicalPath();
+ QString pstr = QDir::cleanPath(parent.path());
+ QString cstr = QDir::cleanPath(subdir.path());
bool ret = !cstr.indexOf(pstr);
return ret;

0 comments on commit bedc054

Please sign in to comment.