mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-15 02:24:50 +02:00
We always support complex filenames on Windows.
This commit is contained in:
@@ -90,7 +90,7 @@ MetadataEditor::writeMetadata( bool closeDlg )
|
||||
QFileInfo fi( QUrl( m_result->url() ).toLocalFile() );
|
||||
|
||||
bool changed = false;
|
||||
#ifdef COMPLEX_TAGLIB_FILENAME
|
||||
#ifdef Q_OS_WIN
|
||||
const wchar_t* encodedName = fi.canonicalFilePath().toStdWString().c_str();
|
||||
#else
|
||||
QByteArray fileName = QFile::encodeName( fi.canonicalFilePath() );
|
||||
|
@@ -386,7 +386,7 @@ MusicScanner::readTags( const QFileInfo& fi )
|
||||
if ( !TomahawkUtils::supportedExtensions().contains( suffix ) )
|
||||
return QVariantMap(); // invalid extension
|
||||
|
||||
#ifdef COMPLEX_TAGLIB_FILENAME
|
||||
#ifdef Q_OS_WIN
|
||||
const wchar_t* encodedName = fi.canonicalFilePath().toStdWString().c_str();
|
||||
#else
|
||||
QByteArray fileName = QFile::encodeName( fi.canonicalFilePath() );
|
||||
|
Reference in New Issue
Block a user