BUGFIX: Fix encoding issue in command line parameters processing

This commit is contained in:
Christophe Dumez
2010-09-27 17:19:27 +00:00
parent 58c0ac7638
commit 7ab7f4b0fc
2 changed files with 4 additions and 1 deletions

View File

@@ -1,3 +1,6 @@
* Unreleased - Christophe Dumez <chris@qbittorrent.org> - v2.4.3
- BUGFIX: Fix encoding issue in command line parameters processing
* Sun Sep 26 2010 - Christophe Dumez <chris@qbittorrent.org> - v2.4.2 * Sun Sep 26 2010 - Christophe Dumez <chris@qbittorrent.org> - v2.4.2
- BUGFIX: Fix display of torrent content in addition dialog - BUGFIX: Fix display of torrent content in addition dialog
- BUGFIX: Really fix manual editing of save path in torrent addition dialog - BUGFIX: Really fix manual editing of save path in torrent addition dialog

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 += "|";
} }