diff --git a/src/app/commandlineoptions.cpp b/src/app/commandlineoptions.cpp index 6f18ea97d..7f34d92c2 100644 --- a/src/app/commandlineoptions.cpp +++ b/src/app/commandlineoptions.cpp @@ -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; diff --git a/src/downloads/downloadfilehelper.cpp b/src/downloads/downloadfilehelper.cpp index f932324de..098c2a90f 100644 --- a/src/downloads/downloadfilehelper.cpp +++ b/src/downloads/downloadfilehelper.cpp @@ -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; }