aboutsummaryrefslogtreecommitdiff
path: root/x11-toolkits/qt32/files/patch-qtextedit.cpp
blob: 7c22203692de903730e1c0b6263260a958d932e9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- src/widgets/qtextedit.cpp.orig	Mon Feb 24 09:30:37 2003
+++ src/widgets/qtextedit.cpp	Mon May 12 19:50:19 2003
@@ -1863,7 +1863,7 @@
     }
     setModified();
     emit textChanged();
-    emit selectionChanged();
+    emit copyAvailable( doc->hasSelection( QTextDocument::Standard ) );
 }
 
 /*!
@@ -4801,7 +4801,7 @@
 	return;
     if ( doc->hasSelection( QTextDocument::Standard ) )
 	removeSelectedText();
-    if ( !m->provides( st.data() ) )
+    if ( !QRichTextDrag::canDecode( m ) )
 	return;
     QString t;
     if ( !QRichTextDrag::decode( m, t, st.data(), subtype ) )