Skip to content

Commit

Permalink
Use the global musicDir variable instead of querying the setting
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartm committed Jul 6, 2012
1 parent ab33b88 commit 356e59a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions mythplugins/mythmusic/mythmusic/metadata.cpp
Expand Up @@ -216,9 +216,8 @@ bool Metadata::isInDatabase()
QString sqldir = m_filename.section('/', 0, -2);

// Filename is the absolute path, we want the relative path
QString musicdir = gCoreContext->GetSetting("MusicLocation");
if (sqldir.startsWith(musicdir))
sqldir.remove(0, musicdir.length());
if (sqldir.startsWith(gMusicData->musicDir))
sqldir.remove(0, gMusicData->musicDir.length());

QString sqlfilename = m_filename.section('/', -1);

Expand Down

0 comments on commit 356e59a

Please sign in to comment.