Skip to content

Commit

Permalink
Check major/minor version before setting theme directory
Browse files Browse the repository at this point in the history
  • Loading branch information
tresf committed Dec 13, 2014
1 parent 73cad09 commit a8924a3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/core/config_mgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,13 @@ void configManager::loadConfigFile()
node = node.nextSibling();
}

if( value( "paths", "artwork" ) != "" )
// don't use dated theme folders as they break the UI (i.e. 0.4 != 1.0, etc)
bool use_artwork_path =
root.attribute( "version" ).startsWith(
QString::number( LMMS_VERSION_MAJOR ) + "." +
QString::number( LMMS_VERSION_MINOR ) );

if( use_artwork_path && value( "paths", "artwork" ) != "" )
{
m_artworkDir = value( "paths", "artwork" );
if( !QDir( m_artworkDir ).exists() )
Expand Down

0 comments on commit a8924a3

Please sign in to comment.