[app] Removed unnecessary slash from the state file name

Doesn't really matter, purely cosmetic change
This commit is contained in:
Slava Monich 2015-12-01 18:59:17 +02:00
parent 34fb489107
commit 2f435649b7

View file

@ -756,9 +756,17 @@ void BooksShelf::queueStateSave()
QString BooksShelf::stateFileName(QString aRelativePath) const
{
return iStorage.isValid() ?
iStorage.configDir().path() + "/" + aRelativePath + ("/" SHELF_STATE_FILE) :
QString();
if (iStorage.isValid()) {
QString path(iStorage.configDir().path());
if (!aRelativePath.isEmpty()) {
path += "/";
path += aRelativePath;
}
path += "/" SHELF_STATE_FILE;
return path;
} else {
return QString();
}
}
int BooksShelf::bookIndex(BooksBook* aBook) const