Merge pull request #2683 from zonkmachine/crashslash
Crash at clearing path in settings manager
This commit is contained in:
@@ -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 + '/';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user