Crash at clearing path in settings manager

This commit is contained in:
Oskar Wallgren
2016-03-18 04:48:21 +01:00
parent 3e62aa022c
commit e8ac40c2fb

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 + '/';
}