mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 15:07:22 -06:00
committed by
GitHub
parent
9f6130cbaa
commit
f44341a8e2
@@ -59,7 +59,6 @@
|
||||
#include <QStorageInfo>
|
||||
#include <QRegularExpression>
|
||||
|
||||
#include "base/bittorrent/common.h"
|
||||
#include "base/global.h"
|
||||
|
||||
QString Utils::Fs::toNativePath(const QString &path)
|
||||
@@ -82,10 +81,7 @@ QString Utils::Fs::resolvePath(const QString &relativePath, const QString &baseP
|
||||
|
||||
QString Utils::Fs::fileExtension(const QString &filename)
|
||||
{
|
||||
const QString name = filename.endsWith(QB_EXT)
|
||||
? filename.chopped(QB_EXT.length())
|
||||
: filename;
|
||||
return QMimeDatabase().suffixForFileName(name);
|
||||
return QMimeDatabase().suffixForFileName(filename);
|
||||
}
|
||||
|
||||
QString Utils::Fs::fileName(const QString &filePath)
|
||||
|
||||
Reference in New Issue
Block a user