Commit 08f01aee authored by Pierre-Antoine Rouby's avatar Pierre-Antoine Rouby
Browse files

Network: Fix #22.

Showing with 3 additions and 1 deletion
+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,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment