openbsd-ports/x11/qt3/patches/patch-src_kernel_qdragobject_cpp
brad 2853f45861 upgrade to Qt 3.3.2
ok MAINTAINER
2004-07-22 23:03:08 +00:00

21 lines
741 B
Plaintext

$OpenBSD: patch-src_kernel_qdragobject_cpp,v 1.1 2004/07/22 23:03:09 brad Exp $
--- src/kernel/qdragobject.cpp.orig 2004-04-19 03:36:04.000000000 -0600
+++ src/kernel/qdragobject.cpp 2004-06-24 00:02:04.000000000 -0600
@@ -890,6 +890,16 @@ bool QTextDrag::decode( const QMimeSourc
{
if(!e)
return FALSE;
+
+ // when subtype is not specified, try text/plain first, otherwise this may read
+ // things like text/x-moz-url even though better targets are available
+ if( subtype.isNull()) {
+ QCString subtmp = "plain";
+ if( decode( e, str, subtmp )) {
+ subtype = subtmp;
+ return true;
+ }
+ }
if ( e->cacheType == QMimeSource::Text ) {
str = *e->cache.txt.str;