[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bindings
Subject: [Kde-bindings] Qyoto: a hack to prevent the invalid cast from QEvent to QModelIndex
From: Dimitar Dobrev <dpldobrev () yahoo ! com>
Date: 2012-05-13 17:30:10
Message-ID: 1336930210.57711.YahooMailNeo () web125904 ! mail ! ne1 ! yahoo ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
The attached patch fixes the invalid cast from QEvent to QModelIndex (for details see \
my "Qyoto: Help needed" post) by disabling the Qyoto object cache in a specific case. \
For now I haven't found the exact problem with the cache but it is a show-stopper \
therefore the hack.
[Attachment #5 (text/html)]
<html><body><div style="color:#000; background-color:#fff; font-family:times new \
roman, new york, times, serif;font-size:12pt"><div>The attached patch fixes the \
invalid cast from QEvent to QModelIndex (for details see my "Qyoto: Help needed" \
post) by disabling the Qyoto object cache in a specific case. For now I haven't found \
the exact problem with the cache but it is a show-stopper therefore the \
hack.<br></div></div></body></html>
--897857186-1606828599-1336930210=:57711--
["hack_fix_qevent_qmodelindex_crash.diff" (application/octet-stream)]
assemblies/qyoto-qtcore/native/handlers.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/assemblies/qyoto-qtcore/native/handlers.cpp b/assemblies/qyoto-qtcore/native/handlers.cpp
index 7459ff9..7459922 100644
--- a/assemblies/qyoto-qtcore/native/handlers.cpp
+++ b/assemblies/qyoto-qtcore/native/handlers.cpp
@@ -663,7 +663,7 @@ marshall_basetype(Marshall *m)
o->allocated = true;
}
// Keep a mapping of the pointer so that it is only wrapped once
- mapPointer(obj, o, o->classId, 0);
+ //mapPointer(obj, o, o->classId, 0);
m->var().s_class = obj;
}
_______________________________________________
Kde-bindings mailing list
Kde-bindings@kde.org
https://mail.kde.org/mailman/listinfo/kde-bindings
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic