insignifican fixes about urls parsing

This commit is contained in:
Blue 2019-12-06 11:00:09 +03:00
parent ae3a1c97e3
commit 0c33d81c59
2 changed files with 5 additions and 3 deletions

View file

@ -289,7 +289,7 @@ void Core::NetworkAccess::onDownloadFinished()
QStringList hops = url.split("/");
QString fileName = hops.back();
QStringList parts = fileName.split(".");
path = QStandardPaths::writableLocation(QStandardPaths::DownloadLocation);
path = QStandardPaths::writableLocation(QStandardPaths::DownloadLocation) + "/";
QString suffix("");
QString realName = parts.front();
for (QStringList::const_iterator sItr = (parts.begin()++), sEnd = parts.end(); sItr != sEnd; ++sItr) {