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:
parent
1f13bf3ba9
commit
5f7d64537a
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user