mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-30 03:28:41 -07:00
parent
9f6130cbaa
commit
f44341a8e2
11 changed files with 63 additions and 105 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue