Commit de7f988c authored by David Edmundson's avatar David Edmundson
Browse files

Store stashed model index as QPersistentModelIndex

Otherwise we can crash if the model updates during load.

CCBUG: 390005
CCBUG: 385557

Test Plan:
Had a state where my manually saved session would crash systemsettings on load
accessing a null kservice object from a menuItem

With this patch that session no longer crashes

Reviewers: #plasma, apol

Reviewed By: apol

Subscribers: apol, plasma-devel

Tags: #plasma

Differential Revision:
parent 20bd08d6
......@@ -59,7 +59,7 @@ public:
QWidget* view;
QAbstractItemModel *model;
QTimer* timer;
QModelIndex item;
QPersistentModelIndex item;
QRect itemRect;
int delay;
ToolTipPosition toolTipPosition;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment