set default path if a path only contains of a dir-separator

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1652 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-09-20 22:23:19 +00:00
parent f45e6cfcfe
commit b5fd1c5b88
2 changed files with 6 additions and 3 deletions

View File

@@ -1,5 +1,8 @@
2008-09-20 Tobias Doerffel <tobydox/at/users/dot/sourceforge/dot/net>
* src/core/config_mgr.cpp:
set default path if a path only contains of a dir-separator
* data/presets/CMakeLists.txt:
fixed extension of presets

View File

@@ -283,17 +283,17 @@ void configManager::loadConfigFile( void )
}
if( m_vstDir == "" )
if( m_vstDir == "" || m_vstDir == QDir::separator() )
{
m_vstDir = ensureTrailingSlash( QDir::home().absolutePath() );
}
if( m_flDir == "" )
if( m_flDir == "" || m_flDir == QDir::separator() )
{
m_flDir = ensureTrailingSlash( QDir::home().absolutePath() );
}
if( m_ladDir == "" )
if( m_ladDir == "" || m_ladDir == QDir::separator() )
{
#ifdef LMMS_BUILD_WIN32
m_ladDir = m_pluginDir + "ladspa" + QDir::separator();