[rkward-cvs] SF.net SVN: rkward:[2571] trunk/rkward/rkward/windows/rkhtmlwindow.cpp

tfry at users.sourceforge.net tfry at users.sourceforge.net
Thu Jul 23 14:33:15 UTC 2009


Revision: 2571
          http://rkward.svn.sourceforge.net/rkward/?rev=2571&view=rev
Author:   tfry
Date:     2009-07-23 14:33:15 +0000 (Thu, 23 Jul 2009)

Log Message:
-----------
Attempt to fix the failure to show output file on windows (as reported by nono.231)

Modified Paths:
--------------
    trunk/rkward/rkward/windows/rkhtmlwindow.cpp

Modified: trunk/rkward/rkward/windows/rkhtmlwindow.cpp
===================================================================
--- trunk/rkward/rkward/windows/rkhtmlwindow.cpp	2009-07-23 14:28:23 UTC (rev 2570)
+++ trunk/rkward/rkward/windows/rkhtmlwindow.cpp	2009-07-23 14:33:15 UTC (rev 2571)
@@ -258,14 +258,13 @@
 			return false;
 		}
 	} else {
-		// this also means, that we bail out on almost all non-local files.
-		if (!KMimeType::findByUrl (url)->is ("text/html")) {
+		if (!(url.isLocalFile () && KMimeType::findByUrl (url)->is ("text/html"))) {
 			RKWorkplace::mainWorkplace ()->openAnyUrl (url);
 			return true;
 		}
 	}
 
-	QFileInfo out_file (url.path ());
+	QFileInfo out_file (url.toLocalFile ());
 	bool ok = out_file.exists();
 	if (ok)  {
 		khtmlpart->openUrl (url);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the rkward-tracker mailing list