author | sandman <sandman> | 2002-07-20 22:34:42 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-07-20 22:34:42 (UTC) |
commit | 594dfd3535846a536cebdb3381f4858239404c49 (patch) (unidiff) | |
tree | d813fa27d282e03b732fb79985beabd3aa190064 | |
parent | d7e4bedb202300254511ad5949cb6176bcf4f37f (diff) | |
download | opie-594dfd3535846a536cebdb3381f4858239404c49.zip opie-594dfd3535846a536cebdb3381f4858239404c49.tar.gz opie-594dfd3535846a536cebdb3381f4858239404c49.tar.bz2 |
Fix for a (obvious) bug that resulted in double pasting and/or hanging apps
-rw-r--r-- | core/applets/clipboardapplet/clipboard.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/applets/clipboardapplet/clipboard.cpp b/core/applets/clipboardapplet/clipboard.cpp index 181f4bf..5848d0f 100644 --- a/core/applets/clipboardapplet/clipboard.cpp +++ b/core/applets/clipboardapplet/clipboard.cpp | |||
@@ -198,25 +198,25 @@ void ClipboardApplet::action(int id) | |||
198 | 198 | ||
199 | for ( uint i = 0; i < m_history. count ( ); i++ ) | 199 | for ( uint i = 0; i < m_history. count ( ); i++ ) |
200 | m_menu-> setItemChecked ( i, i == uint( id )); | 200 | m_menu-> setItemChecked ( i, i == uint( id )); |
201 | 201 | ||
202 | unicode = 'V' - '@'; | 202 | unicode = 'V' - '@'; |
203 | scan = Key_V; | 203 | scan = Key_V; |
204 | } | 204 | } |
205 | break; | 205 | break; |
206 | } | 206 | } |
207 | 207 | ||
208 | if ( scan ) { | 208 | if ( scan ) { |
209 | qwsServer-> sendKeyEvent ( unicode, scan, ControlButton, true, false ); | 209 | qwsServer-> sendKeyEvent ( unicode, scan, ControlButton, true, false ); |
210 | qwsServer-> sendKeyEvent ( unicode, scan, ControlButton, true, false ); | 210 | qwsServer-> sendKeyEvent ( unicode, scan, ControlButton, false, false ); |
211 | } | 211 | } |
212 | } | 212 | } |
213 | 213 | ||
214 | void ClipboardApplet::paintEvent ( QPaintEvent* ) | 214 | void ClipboardApplet::paintEvent ( QPaintEvent* ) |
215 | { | 215 | { |
216 | QPainter p ( this ); | 216 | QPainter p ( this ); |
217 | p. drawPixmap ( 0, 1, m_clipboardPixmap ); | 217 | p. drawPixmap ( 0, 1, m_clipboardPixmap ); |
218 | } | 218 | } |
219 | 219 | ||
220 | void ClipboardApplet::newData ( ) | 220 | void ClipboardApplet::newData ( ) |
221 | { | 221 | { |
222 | QCString type = "plain"; | 222 | QCString type = "plain"; |