Merge pull request #2683 from zonkmachine/crashslash

Crash at clearing path in settings manager
This commit is contained in:
Tres Finocchiaro
2016-03-18 10:33:31 -04:00

View File

@@ -38,7 +38,7 @@
static inline QString ensureTrailingSlash( const QString & s )
{
if(s.at(s.length()-1) != '/')
if( ! s.isEmpty() && !s.endsWith('/') && !s.endsWith('\\') )
{
return s + '/';
}