From b5fd1c5b887c7d900d7f1dff2d6812835b5a559a Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Sat, 20 Sep 2008 22:23:19 +0000 Subject: [PATCH] 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 --- ChangeLog | 3 +++ src/core/config_mgr.cpp | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 51ba7b11a..5408a80ba 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2008-09-20 Tobias Doerffel + * 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 diff --git a/src/core/config_mgr.cpp b/src/core/config_mgr.cpp index c6860326d..6896e6678 100644 --- a/src/core/config_mgr.cpp +++ b/src/core/config_mgr.cpp @@ -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();