On Tue, Aug 27, 2002 at 11:06:01PM -0700, Ben Reser wrote:
> --- khtml/khtml_ext.cpp.orig  2002-08-27 23:00:20.000000000 -0700
> +++ khtml/khtml_ext.cpp       2002-08-27 23:01:57.000000000 -0700
> @@ -386,7 +386,12 @@
>  #ifndef QT_NO_MIMECLIPBOARD
>    // Set it in both the mouse selection and in the clipboard
>    QApplication::clipboard()->setSelectionMode(true);
> -  QApplication::clipboard()->setData( KURLDrag::newDrag( lst ) );
> +  // Ben Reser <[EMAIL PROTECTED]>:
> +  // Don't use the below method for now.  The clipboard isn't setting
> +  // the XA_STRING type for some reason and it brakes middle click pasting
> +  // QApplication::clipboard()->setData( KURLDrag::newDrag( lst ) );
> +  // This temporarily works around the issue:
> +  QApplication::clipboard()->setText(d->m_imageURL.url());
>    QApplication::clipboard()->setSelectionMode(false);
>    QApplication::clipboard()->setData( KURLDrag::newDrag( lst ) );
>  #else

I really ought to read the patches before I post them... This is missing
a chunk.  So it'll only fix the CopyImageLocation menu item, Oops.  Attached
is the full patch. :)

-- 
Ben Reser <[EMAIL PROTECTED]>
http://ben.reser.org

If your love has no hope of being welcomed do not voice it; for if it 
be silent it can endure, a guarded flame, within you.
- The Wisdom of the Sands
--- khtml/khtml_ext.cpp.orig    2002-03-15 14:53:08.000000000 -0800
+++ khtml/khtml_ext.cpp 2002-08-28 02:08:11.000000000 -0700
@@ -365,7 +365,12 @@
 #ifndef QT_NO_MIMECLIPBOARD
   // Set it in both the mouse selection and in the clipboard
   QApplication::clipboard()->setSelectionMode(true);
-  QApplication::clipboard()->setData( KURLDrag::newDrag( lst ) );
+  // Ben Reser <[EMAIL PROTECTED]>:
+  // Don't use the below method for now.  The clipboard isn't setting
+  // the XA_STRING type for some reason and it brakes middle click pasting
+  //QApplication::clipboard()->setData( KURLDrag::newDrag( lst ) );
+  // This temporarily works around the issue:
+  QApplications::clipboard()->setText( d->m_url.url() );
   QApplication::clipboard()->setSelectionMode(false);
   QApplication::clipboard()->setData( KURLDrag::newDrag( lst ) );
 #else
@@ -385,7 +390,12 @@
 #ifndef QT_NO_MIMECLIPBOARD
   // Set it in both the mouse selection and in the clipboard
   QApplication::clipboard()->setSelectionMode(true);
-  QApplication::clipboard()->setData( KURLDrag::newDrag( lst ) );
+  // Ben Reser <[EMAIL PROTECTED]>:
+  // Don't use the below method for now.  The clipboard isn't setting
+  // the XA_STRING type for some reason and it brakes middle click pasting
+  // QApplication::clipboard()->setData( KURLDrag::newDrag( lst ) );
+  // This temporarily works around the issue:
+  QApplication::clipboard()->setText(d->m_imageURL.url());
   QApplication::clipboard()->setSelectionMode(false);
   QApplication::clipboard()->setData( KURLDrag::newDrag( lst ) );
 #else

Reply via email to