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:
@@ -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
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user