1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-21 17:52:10 +02:00

[Fix] Fixed including path to download filename.

- also showing revision in command line when starting
   qupzilla -v or qupzilla --version
This commit is contained in:
nowrep 2011-12-18 15:42:28 +01:00
parent 1f13bf3ba9
commit 5f7d64537a
2 changed files with 5 additions and 2 deletions

View File

@ -80,6 +80,9 @@ void CommandLineOptions::parseActions()
}
if (arg == "-v" || arg == "--version") {
cout << "QupZilla v" << QupZilla::VERSION.toUtf8().data()
#ifdef GIT_REVISION
<< " rev " << GIT_REVISION << " "
#endif
<< "(build " << QupZilla::BUILDTIME.toUtf8().data() << ")"
<< endl;
found = true;

View File

@ -207,8 +207,6 @@ QString DownloadFileHelper::getFileName(QNetworkReply* reply)
path = reply->url().path();
}
path = qz_filterCharsFromFilename(path);
QFileInfo info(path);
QString baseName = info.completeBaseName();
QString endName = info.suffix();
@ -229,6 +227,8 @@ QString DownloadFileHelper::getFileName(QNetworkReply* reply)
name.remove("\";");
}
name = qz_filterCharsFromFilename(name);
return name;
}