forked from blue/squawk
insignifican fixes about urls parsing
This commit is contained in:
parent
ae3a1c97e3
commit
0c33d81c59
2 changed files with 5 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue