mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Network: Fix #22.
This commit is contained in:
1 parent
c69cbdb34e
commit
08f01aee69
1 file changed
+3
-1
@@ -37,6 +37,8 @@ from PyQt5.QtWidgets import (
|
||||
QApplication,
|
||||
)
|
||||
|
||||
logger = logging.getLogger()
|
||||
|
||||
|
||||
class ComboBoxDelegate(QItemDelegate):
|
||||
def __init__(self, graph=None, parent=None):
|
||||
@@ -144,7 +146,7 @@ class EdgeTableModel(PamhyrTableModel):
|
||||
try:
|
||||
if (self._headers[index.column()] == "node1" or
|
||||
self._headers[index.column()] == "node2"):
|
||||
node = self.graph.node(value)
|
||||
node = self._data.node(value)
|
||||
self._undo.push(
|
||||
SetNodeCommand(
|
||||
self._data,
|
||||
|
||||
Reference in new issue
Block a user