Skip to content

Commit

Permalink
Revert "Pass full string to name decoding (nickbnf#223)"
Browse files Browse the repository at this point in the history
This reverts commit 49f67f9.
  • Loading branch information
variar committed Oct 28, 2020
1 parent 8339be0 commit ee3c199
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/app/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,7 @@ struct CliParameters {
options.parse( argc, argv );

for ( const auto& file : raw_filenames ) {
const auto rawName = QByteArray{ file.data(), static_cast<int>( file.size() ) };
const auto decodedName = QFile::decodeName( rawName );
auto decodedName = QFile::decodeName( file.c_str() );
if ( !decodedName.isEmpty() ) {
const auto fileInfo = QFileInfo( decodedName );
filenames.emplace_back( fileInfo.absoluteFilePath() );
Expand Down

0 comments on commit ee3c199

Please sign in to comment.