Merge lp:~mzanetti/autopilot-qt/fix-crash-with-maliit into lp:autopilot-qt

Proposed by Michael Zanetti
Status: Merged
Approved by: Chris Gagnon
Approved revision: 65
Merged at revision: 63
Proposed branch: lp:~mzanetti/autopilot-qt/fix-crash-with-maliit
Merge into: lp:autopilot-qt
Diff against target: 25 lines (+7/-1)
2 files modified
debian/changelog (+6/-0)
driver/qtnode.cpp (+1/-1)
To merge this branch: bzr merge lp:~mzanetti/autopilot-qt/fix-crash-with-maliit
Reviewer Review Type Date Requested Status
Chris Gagnon (community) Approve
PS Jenkins bot continuous-integration Approve
Review via email: mp+170294@code.launchpad.net

Commit message

fix crash if the application does dirty tricks with the QtQuickView's rootObject

This wouldn't happen in normal circumstances, but some apps need to mess with this.
For example maliit-server needs to destroy the views root item when the OSK is hidden.

To post a comment you must log in.
64. By Michael Zanetti

release

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
65. By Michael Zanetti

really release

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
Chris Gagnon (chris.gagnon) wrote :

it works approved!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2013-06-05 07:08:47 +0000
3+++ debian/changelog 2013-06-19 12:32:29 +0000
4@@ -1,3 +1,9 @@
5+autopilot-qt (1.3daily13.06.05-0ubuntu2) saucy; urgency=low
6+
7+ * fix crash with maliit-server
8+
9+ -- Michael Zanetti <michael.zanetti@canonical.com> Wed, 19 Jun 2013 14:27:21 +0200
10+
11 autopilot-qt (1.3daily13.06.05-0ubuntu1) saucy; urgency=low
12
13 [ Michael Zanetti ]
14
15=== modified file 'driver/qtnode.cpp'
16--- driver/qtnode.cpp 2013-04-18 04:27:22 +0000
17+++ driver/qtnode.cpp 2013-06-19 12:32:29 +0000
18@@ -100,7 +100,7 @@
19 // - In case it is not a QQuickItem, fall back to the standard QObject hierarchy
20
21 QQuickView *view = qobject_cast<QQuickView*>(object_);
22- if (view) {
23+ if (view && view->rootObject() != 0) {
24 children.push_back(std::make_shared<QtNode>(view->rootObject(), GetPath()));
25 }
26

Subscribers

People subscribed via source and target branches