summaryrefslogtreecommitdiffstats
path: root/opensuse/tdebase/workaround-pdf-on64bit-nsplugin-bug.diff
diff options
context:
space:
mode:
authorRobert Xu <robxu9@gmail.com>2011-08-24 17:26:04 -0400
committerRobert Xu <robxu9@gmail.com>2011-08-24 17:26:04 -0400
commit93c66bf8bb8ac0124ae1800cbaaeb814742bfac5 (patch)
tree2551422a7981b35684110fae090223b7a1b6d73f /opensuse/tdebase/workaround-pdf-on64bit-nsplugin-bug.diff
parent425774d7d1d663e08bb06050924f2eeca9147bba (diff)
downloadtde-packaging-93c66bf8bb8ac0124ae1800cbaaeb814742bfac5.tar.gz
tde-packaging-93c66bf8bb8ac0124ae1800cbaaeb814742bfac5.zip
dbus-1-tqt -> libdbus-tqt-1-0 AND tdelibs import (unchanged)
Diffstat (limited to 'opensuse/tdebase/workaround-pdf-on64bit-nsplugin-bug.diff')
-rw-r--r--opensuse/tdebase/workaround-pdf-on64bit-nsplugin-bug.diff44
1 files changed, 44 insertions, 0 deletions
diff --git a/opensuse/tdebase/workaround-pdf-on64bit-nsplugin-bug.diff b/opensuse/tdebase/workaround-pdf-on64bit-nsplugin-bug.diff
new file mode 100644
index 000000000..b5681e0a3
--- /dev/null
+++ b/opensuse/tdebase/workaround-pdf-on64bit-nsplugin-bug.diff
@@ -0,0 +1,44 @@
+Index: nsplugins/nspluginloader.cpp
+===================================================================
+--- nsplugins/nspluginloader.cpp.orig
++++ nsplugins/nspluginloader.cpp
+@@ -322,7 +322,7 @@ QString NSPluginLoader::lookup(const QSt
+ }
+
+
+-bool NSPluginLoader::loadViewer()
++bool NSPluginLoader::loadViewer(const QString &mimeType)
+ {
+ kdDebug() << "NSPluginLoader::loadViewer" << endl;
+
+@@ -346,7 +346,7 @@ bool NSPluginLoader::loadViewer()
+ }
+
+ // find the external artsdsp process
+- if( _useArtsdsp ) {
++ if( _useArtsdsp && mimeType != "application/pdf" ) {
+ kdDebug() << "trying to use artsdsp" << endl;
+ QString artsdsp = KGlobal::dirs()->findExe("artsdsp");
+ if (!artsdsp)
+@@ -460,7 +460,7 @@ NSPluginInstance *NSPluginLoader::newIns
+ if ( !_viewer )
+ {
+ // load plugin viewer process
+- loadViewer();
++ loadViewer(mimeType);
+
+ if ( !_viewer )
+ {
+Index: nsplugins/nspluginloader.h
+===================================================================
+--- nsplugins/nspluginloader.h.orig
++++ nsplugins/nspluginloader.h
+@@ -100,7 +100,7 @@ protected:
+ QString lookup(const QString &mimeType);
+ QString lookupMimeType(const QString &url);
+
+- bool loadViewer();
++ bool loadViewer(const QString &mimeType);
+ void unloadViewer();
+
+ protected slots: