Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use the global musicDir variable instead of querying the setting

  • Loading branch information...
commit 356e59a09e76ba0888b783ee2ba2bc8a17ae45d4 1 parent ab33b88
@stuartm stuartm authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 mythplugins/mythmusic/mythmusic/metadata.cpp
View
5 mythplugins/mythmusic/mythmusic/metadata.cpp
@@ -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);

0 comments on commit 356e59a

Please sign in to comment.
Something went wrong with that request. Please try again.