From 0ea409054ab1a0b950bdcd36a448dc795cd571d9 Mon Sep 17 00:00:00 2001 From: sudden6 Date: Sat, 10 Nov 2018 00:40:40 +0100 Subject: [PATCH] fix(paths): fix bugs uncovered while developing test cases There was one directory separator too much in the path. Also improved the documentation. --- src/persistence/paths.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/persistence/paths.cpp b/src/persistence/paths.cpp index 0eb12d0b3..d8b9a5053 100644 --- a/src/persistence/paths.cpp +++ b/src/persistence/paths.cpp @@ -38,14 +38,17 @@ const QLatin1Literal TCSToxFileFolder{"~/.config/tox/"}; * @code * /themes/ * /profiles/ + * /profiles/avatars/ * /... * @endcode * * Example file layout for portable mode: * @code - * /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 return {}; } - return path % QDir::separator() % avatarsFolder % QDir::separator(); + return path % avatarsFolder % QDir::separator(); } /**