[app] Removed unnecessary slash from the state file name
Doesn't really matter, purely cosmetic change
This commit is contained in:
parent
34fb489107
commit
2f435649b7
1 changed files with 11 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue