782
|
1 |
--- qt-x11-free-3.3.8/src/kernel/qdragobject.cpp.orig 2007-02-02 19:31:11.000000000 +0530
|
|
2 |
+++ qt-x11-free-3.3.8/src/kernel/qdragobject.cpp 2008-01-08 22:41:40.686693799 +0530
|
|
3 |
@@ -894,6 +894,16 @@
|
|
4 |
if(!e)
|
|
5 |
return FALSE;
|
|
6 |
|
|
7 |
+ // when subtype is not specified, try text/plain first, otherwise this may read
|
|
8 |
+ // things like text/x-moz-url even though better targets are available
|
|
9 |
+ if( subtype.isNull()) {
|
|
10 |
+ QCString subtmp = "plain";
|
|
11 |
+ if( decode( e, str, subtmp )) {
|
|
12 |
+ subtype = subtmp;
|
|
13 |
+ return true;
|
|
14 |
+ }
|
|
15 |
+ }
|
|
16 |
+
|
|
17 |
if ( e->cacheType == QMimeSource::Text ) {
|
|
18 |
str = *e->cache.txt.str;
|
|
19 |
subtype = *e->cache.txt.subtype;
|