Commented out some code that caused a crash when used with Qt 6.1.2. eric7

Sun, 11 Jul 2021 15:17:16 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 11 Jul 2021 15:17:16 +0200
branch
eric7
changeset 8464
9058a129177e
parent 8463
4a25c872d020
child 8465
59bb8fdeef1b

Commented out some code that caused a crash when used with Qt 6.1.2.

eric7/Project/ProjectBrowserModel.py file | annotate | diff | comparison | revisions
diff -r 4a25c872d020 -r 9058a129177e eric7/Project/ProjectBrowserModel.py
--- a/eric7/Project/ProjectBrowserModel.py	Sat Jul 10 16:50:51 2021 +0200
+++ b/eric7/Project/ProjectBrowserModel.py	Sun Jul 11 15:17:16 2021 +0200
@@ -514,8 +514,10 @@
                 else:
                     if type_ and type_ not in itm.getProjectTypes():
                         itm.addProjectType(type_)
-                        index = self.createIndex(itm.row(), 0, itm)
-                        self.dataChanged.emit(index, index)
+                        # TODO: commented out because it causes a crash
+                        # in Qt 6.1.2. What does change?
+##                        index = self.createIndex(itm.row(), 0, itm)
+##                        self.dataChanged.emit(index, index)
                 olditem = itm
             return (itm, pathlist[-1])
         else:

eric ide

mercurial