1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-26 22:44:36 +00:00

Fix encoding problem in command line parameter processing

This commit is contained in:
Christophe Dumez 2010-09-27 17:17:22 +00:00
parent 74fba0fb7e
commit 69661406a0

View File

@ -178,7 +178,7 @@ int main(int argc, char *argv[]){
for (int a = 1; a < argc; ++a) { for (int a = 1; a < argc; ++a) {
QString p = QString::fromLocal8Bit(argv[a]); QString p = QString::fromLocal8Bit(argv[a]);
if(p.startsWith("--")) continue; if(p.startsWith("--")) continue;
message += argv[a]; message += QString::fromLocal8Bit(argv[a]);
if (a < argc-1) if (a < argc-1)
message += "|"; message += "|";
} }