mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
not used mutable data in method args
This commit is contained in:
parent
162ea57982
commit
a771578aa4
1 changed files with 2 additions and 2 deletions
|
|
@ -959,7 +959,7 @@ class ArtistProxy(QtCore.QAbstractProxyModel):
|
||||||
source_model.modelReset.connect(self.on_reset)
|
source_model.modelReset.connect(self.on_reset)
|
||||||
source_model.dataChanged.connect(self.on_data_changed)
|
source_model.dataChanged.connect(self.on_data_changed)
|
||||||
|
|
||||||
def on_data_changed(self, from_index, to_index, role=[]):
|
def on_data_changed(self, from_index, to_index, roles=None):
|
||||||
proxy_from_index = self.mapFromSource(from_index)
|
proxy_from_index = self.mapFromSource(from_index)
|
||||||
if from_index == to_index:
|
if from_index == to_index:
|
||||||
proxy_to_index = proxy_from_index
|
proxy_to_index = proxy_from_index
|
||||||
|
|
@ -968,7 +968,7 @@ class ArtistProxy(QtCore.QAbstractProxyModel):
|
||||||
|
|
||||||
args = [proxy_from_index, proxy_to_index]
|
args = [proxy_from_index, proxy_to_index]
|
||||||
if Qt.__binding__ not in ("PyQt4", "PySide"):
|
if Qt.__binding__ not in ("PyQt4", "PySide"):
|
||||||
args.append(role)
|
args.append(roles or [])
|
||||||
self.dataChanged.emit(*args)
|
self.dataChanged.emit(*args)
|
||||||
|
|
||||||
def columnCount(self, parent=QtCore.QModelIndex()):
|
def columnCount(self, parent=QtCore.QModelIndex()):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue