Fix: Respect custom working directory whenw riting recovery file

Fixes #1726
This commit is contained in:
Lukas W
2015-02-05 17:40:16 +01:00
parent 2380e30ddd
commit 0a48b2f7bc
2 changed files with 3 additions and 5 deletions

View File

@@ -140,9 +140,9 @@ public:
return m_ladDir;
}
const QString & recoveryFile() const
const QString recoveryFile() const
{
return m_recoveryFile;
return m_workingDir + "recover.mmp";
}
#ifdef LMMS_HAVE_STK
@@ -206,7 +206,6 @@ private:
QString m_vstDir;
QString m_flDir;
QString m_ladDir;
QString m_recoveryFile;
#ifdef LMMS_HAVE_STK
QString m_stkDir;
#endif

View File

@@ -66,8 +66,7 @@ ConfigManager::ConfigManager() :
m_pluginDir( qApp->applicationDirPath() + '/' + PLUGIN_DIR ),
#endif
m_vstDir( m_workingDir + "vst" + QDir::separator() ),
m_flDir( QDir::home().absolutePath() ),
m_recoveryFile( QDir(m_workingDir).absoluteFilePath("recover.mmp") )
m_flDir( QDir::home().absolutePath() )
{
}