[rkward-cvs] SF.net SVN: rkward-code:[4932] trunk/rkward

tfry at users.sf.net tfry at users.sf.net
Sat Oct 18 16:03:11 UTC 2014


Revision: 4932
          http://sourceforge.net/p/rkward/code/4932
Author:   tfry
Date:     2014-10-18 16:03:09 +0000 (Sat, 18 Oct 2014)
Log Message:
-----------
Fix second half of http://sourceforge.net/p/rkward/bugs/130/

Modified Paths:
--------------
    trunk/rkward/ChangeLog
    trunk/rkward/rkward/dialogs/startupdialog.cpp

Modified: trunk/rkward/ChangeLog
===================================================================
--- trunk/rkward/ChangeLog	2014-10-18 15:51:59 UTC (rev 4931)
+++ trunk/rkward/ChangeLog	2014-10-18 16:03:09 UTC (rev 4932)
@@ -1,3 +1,4 @@
+- Fixed display of file paths containing non-ascii characters in the title bar and startup dialog
 - Fixed some erroneous plugin debug messages
 - IN PROGESS: Allow plugins to be translated
   + Notes:

Modified: trunk/rkward/rkward/dialogs/startupdialog.cpp
===================================================================
--- trunk/rkward/rkward/dialogs/startupdialog.cpp	2014-10-18 15:51:59 UTC (rev 4931)
+++ trunk/rkward/rkward/dialogs/startupdialog.cpp	2014-10-18 16:03:09 UTC (rev 4932)
@@ -2,7 +2,7 @@
                           startupdialog  -  description
                              -------------------
     begin                : Thu Aug 26 2004
-    copyright            : (C) 2004, 2011 by Thomas Friedrichsmeier
+    copyright            : (C) 2004, 2011, 2014 by Thomas Friedrichsmeier
     email                : tfry at users.sourceforge.net
  ***************************************************************************/
 
@@ -77,7 +77,10 @@
 	file_list->setSortingEnabled (false);
 	chose_file_item = new QListWidgetItem (i18n ("<<Open another file>>"), file_list);
 	if (recent_files) {
-		file_list->addItems (recent_files->urls ().toStringList ());
+		KUrl::List urls = recent_files->urls ();
+		for (int i = 0; i < urls.length (); ++i) {
+			file_list->addItem (urls[i].pathOrUrl ());
+		}
 	}
 	connect (file_list, SIGNAL (itemClicked (QListWidgetItem*)), this, SLOT (listClicked (QListWidgetItem*)));
 	connect (file_list, SIGNAL (itemDoubleClicked (QListWidgetItem*)), this, SLOT (listDoubleClicked (QListWidgetItem*)));





More information about the rkward-tracker mailing list