falkTX / Cadence

Collection of tools useful for audio production
GNU General Public License v2.0
368 stars 80 forks source link

Claudia error: iItem.isVisible() is not a property or method when populating studio #328

Open themanyone opened 2 years ago

themanyone commented 2 years ago

I got rid of the error by using iItem.isDisabled() instead, as suggested by the error message. Not sure if there are any adverse consequences.

Affected version: Fedora package Cadence-1.0.0-0.17.20210316gitc146ff9.fc35.x86_64 Sorry if this has already been fixed in git.Internet is too slow to research this. Merely sharing what I did.

--- claudia.py~ 2021-08-11 22:22:24.422331606 -0800
+++ claudia.py  2021-08-11 21:56:24.569638743 -0800
@@ -1202,7 +1202,7 @@

         # Remove old unused item if needed
         iItem = self.ui.treeWidget.topLevelItem(room_index)
-        if iItem and not iItem.isVisible():
+        if iItem and iItem.isDisabled():
             self.ui.treeWidget.takeTopLevelItem(room_index)

         # Insert padding of items if needed