We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d0a29e commit 4708fe6Copy full SHA for 4708fe6
1 file changed
src/core/ConfigManager.cpp
@@ -417,7 +417,16 @@ void ConfigManager::loadConfigFile( const QString & configFile )
417
if( value( "paths", "artwork" ) != "" )
418
{
419
m_artworkDir = value( "paths", "artwork" );
420
- if( !QDir( m_artworkDir ).exists() )
+#ifdef LMMS_BUILD_WIN32
421
+ // Detect a QDir/QFile hang on Windows
422
+ // see issue #3417 on github
423
+ bool badPath = ( m_artworkDir == "/" || m_artworkDir == "\\" );
424
+#else
425
+ bool badPath = false;
426
+#endif
427
+
428
+ if( badPath || !QDir( m_artworkDir ).exists() ||
429
+ !QFile( m_artworkDir + "/style.css" ).exists() )
430
431
m_artworkDir = defaultArtworkDir();
432
}
0 commit comments