mirror of
https://github.com/olivierkes/manuskript.git
synced 2024-06-02 11:04:33 +12:00
Optimization
This commit is contained in:
parent
5ed300929f
commit
d6144d3d2b
|
@ -188,6 +188,8 @@ class editorWidget(QWidget, Ui_editorWidget_ui):
|
|||
|
||||
try:
|
||||
self.mw.mdlOutline.dataChanged.connect(self.modelDataChanged, AUC)
|
||||
self.mw.mdlOutline.rowsInserted.connect(self.updateIndexFromID, AUC)
|
||||
self.mw.mdlOutline.rowsRemoved.connect(self.updateIndexFromID, AUC)
|
||||
except TypeError:
|
||||
pass
|
||||
|
||||
|
@ -211,8 +213,8 @@ class editorWidget(QWidget, Ui_editorWidget_ui):
|
|||
self.setView()
|
||||
|
||||
def modelDataChanged(self, topLeft, bottomRight):
|
||||
if self.currentID:
|
||||
self.updateIndexFromID()
|
||||
#if self.currentID:
|
||||
#self.updateIndexFromID()
|
||||
if not self.currentIndex:
|
||||
return
|
||||
if topLeft.row() <= self.currentIndex.row() <= bottomRight.row():
|
||||
|
|
Loading…
Reference in a new issue