Skip to content

Commit

Permalink
Minor formatting fixes ConfigManager dialog.
Browse files Browse the repository at this point in the history
 - Changed format to match that of surrounding code
 - Removed unecessary QDir() usage
 - Re-introduce `fromLocal8Bit`
  • Loading branch information
tresf committed Apr 21, 2015
1 parent b19a9dc commit 48291a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/ConfigManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -356,10 +356,10 @@ void ConfigManager::loadConfigFile()
!QDir( m_vstDir ).exists() )
{
#ifdef LMMS_BUILD_WIN32
QString programFiles = getenv("ProgramFiles");
m_vstDir = programFiles + QDir::separator() + "VstPlugins";
QString programFiles = QString::fromLocal8Bit( getenv( "ProgramFiles" ) );
m_vstDir = programFiles + QDir::separator() + "VstPlugins" + QDir::separator();
#else
m_vstDir = m_workingDir + "plugins/vst" + QDir::separator();
m_vstDir = m_workingDir + "plugins/vst/";
#endif
}

Expand Down

1 comment on commit 48291a8

@tresf
Copy link
Owner Author

@tresf tresf commented on 48291a8 Apr 27, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Test results:
image

Please sign in to comment.