diff options
author | Titta Heikkala <EXT-Titta.2.Heikkala@nokia.com> | 2010-10-28 07:31:41 (GMT) |
---|---|---|
committer | Janne Koskinen <janne.p.koskinen@digia.com> | 2010-10-28 10:35:11 (GMT) |
commit | 55497edc83121317078d62083a835f2b794b37e4 (patch) | |
tree | 632093e5d25d1af5df6e920ee40d2c1a95430437 /src/gui | |
parent | 47c12e2a4cf135faf5ac58d54d8fe87068b35d3d (diff) | |
download | Qt-55497edc83121317078d62083a835f2b794b37e4.zip Qt-55497edc83121317078d62083a835f2b794b37e4.tar.gz Qt-55497edc83121317078d62083a835f2b794b37e4.tar.bz2 |
Fixed crash with QClipboard in Symbian^3
QClipboard now returns copied data outside TRAP to prevent TRAP levels
to get crossed.
Task-number: QTBUG-14790
Reviewed-by: Janne Koskinen
Merge-request: 897
Reviewed-by: Janne Koskinen <janne.p.koskinen@digia.com>
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/kernel/qclipboard_s60.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/gui/kernel/qclipboard_s60.cpp b/src/gui/kernel/qclipboard_s60.cpp index c9b1d23..73280b2 100644 --- a/src/gui/kernel/qclipboard_s60.cpp +++ b/src/gui/kernel/qclipboard_s60.cpp @@ -257,18 +257,14 @@ const QMimeData* QClipboard::mimeData(Mode mode) const } } CleanupStack::PopAndDestroy(cb); - if (dataExists) { - return d->source(); - } - else { - return 0; - } - }); if (err != KErrNone){ qDebug()<< "clipboard is empty/err: " << err; } + if (dataExists) { + return d->source(); + } } return 0; } |