Skip to content

Commit

Permalink
Make mythgallery allow symlinked dir structure
Browse files Browse the repository at this point in the history
Fixes #9509.  Patch from the ticket.

Signed-off-by: Gavin Hurlbut <ghurlbut@mythtv.org>
  • Loading branch information
mythtv@pasher.org authored and Beirdo committed Jul 27, 2011
1 parent 35b8a53 commit bedc054
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mythplugins/mythgallery/mythgallery/iconview.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit bedc054

Please sign in to comment.