mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 21:57:41 +02:00
Unbreak Windows.
This commit is contained in:
@@ -90,10 +90,10 @@ MetadataEditor::writeMetadata( bool closeDlg )
|
||||
QFileInfo fi( QUrl( m_result->url() ).toLocalFile() );
|
||||
|
||||
bool changed = false;
|
||||
QByteArray fileName = QFile::encodeName( fi.canonicalFilePath() );
|
||||
#ifdef Q_OS_WIN
|
||||
const wchar_t* encodedName = fi.canonicalFilePath().toStdWString().c_str();
|
||||
#else
|
||||
QByteArray fileName = QFile::encodeName( fi.canonicalFilePath() );
|
||||
const char* encodedName = fileName.constData();
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user