From: Arto Jantunen <viiru@debian.org>
Date: Thu, 19 May 2011 15:45:11 +0300
Subject: Use QString::fromLocal8Bit when reading argv
This tells QT to convert from the current system locale.
Bug-Debian: http://bugs.debian.org/556649
Forwarded: no
---
browsermain.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/browsermain.cpp b/browsermain.cpp
index 5d0dd88..1be378d 100644
--- a/browsermain.cpp
+++ b/browsermain.cpp
@@ -80,7 +80,7 @@ int main( int argc, char ** argv )
w.show();
if (argc>1) {
//first and only argument we accept is the name of the database to open
- w.fileOpen(QString(argv[1]));
+ w.fileOpen(QString::fromLocal8Bit(argv[1]));
}
a.connect( &a, SIGNAL( lastWindowClosed() ), &a, SLOT( quit() ) );
return a.exec();
--