From f26f8c0a1a569a1397c3dde1f3fd7d0d7795f1f6 Mon Sep 17 00:00:00 2001 From: Arno Date: Mon, 29 Jul 2013 16:16:00 +0200 Subject: Another shot at the Filesystem View crashes I think I found the bug. We need to stop the refresh timer when operating on the view, because it can reset the model while we're still holding QModelIndexes. When that happens we're working with invalid indexes and BOOM. --- smdirmodel.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'smdirmodel.h') diff --git a/smdirmodel.h b/smdirmodel.h index 21aab40..192992a 100644 --- a/smdirmodel.h +++ b/smdirmodel.h @@ -61,4 +61,13 @@ class SmDirModel : public SmTreeModel { SmDataColletor *mCollector; }; +class TimerHandler { + public: + TimerHandler(QTimer *timer); + ~TimerHandler(); + + private: + QTimer *mTimer; +}; + #endif // SMDIRMODEL_H -- cgit v1.2.3-70-g09d2