summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel
diff options
context:
space:
mode:
authorTitta Heikkala <EXT-Titta.2.Heikkala@nokia.com>2010-10-28 07:31:41 (GMT)
committerJanne Koskinen <janne.p.koskinen@digia.com>2010-10-28 10:35:11 (GMT)
commit55497edc83121317078d62083a835f2b794b37e4 (patch)
tree632093e5d25d1af5df6e920ee40d2c1a95430437 /src/gui/kernel
parent47c12e2a4cf135faf5ac58d54d8fe87068b35d3d (diff)
downloadQt-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/kernel')
-rw-r--r--src/gui/kernel/qclipboard_s60.cpp10
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;
}