mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-22 09:40:52 +01:00
previous comit was wrong, this is good bugfix
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@2402 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -60,8 +60,8 @@ void QGIManager::release(QGraphicsItem *qgi) {
|
||||
if (!qgi_manager.contains(qgi)) return;
|
||||
-- qgi_manager[qgi];
|
||||
if (qgi_manager[qgi] <= 0 && !(scene -> items().contains(qgi))) {
|
||||
delete qgi;
|
||||
qgi_manager.remove(qgi);
|
||||
delete qgi;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user