Browse Source

fix(paths): fix bugs uncovered while developing test cases

There was one directory separator too much in the path. Also improved
the documentation.
reviewable/pr5427/r5
sudden6 7 years ago
parent
commit
0ea409054a
No known key found for this signature in database
GPG Key ID: 279509B499E032B9
  1. 11
      src/persistence/paths.cpp

11
src/persistence/paths.cpp

@ -38,14 +38,17 @@ const QLatin1Literal TCSToxFileFolder{"~/.config/tox/"}; @@ -38,14 +38,17 @@ const QLatin1Literal TCSToxFileFolder{"~/.config/tox/"};
* @code
* <BASE_PATH>/themes/
* /profiles/
* /profiles/avatars/
* /...
* @endcode
*
* Example file layout for portable mode:
* @code
* <BASE_PATH>/themes/
* /profiles/
* /qtox.ini
* /qTox.bin
* /themes/
* /profiles/
* /profiles/avatars/
* /qtox.ini
* @endcode
*
* All qTox or Tox specific directories should be looked up through this module.
@ -191,7 +194,7 @@ QString Paths::getAvatarsDir() const @@ -191,7 +194,7 @@ QString Paths::getAvatarsDir() const
return {};
}
return path % QDir::separator() % avatarsFolder % QDir::separator();
return path % avatarsFolder % QDir::separator();
}
/**

Loading…
Cancel
Save