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 ( ...@@ -37,6 +37,8 @@ from PyQt5.QtWidgets import (
QApplication, QApplication,
) )
logger = logging.getLogger()
class ComboBoxDelegate(QItemDelegate): class ComboBoxDelegate(QItemDelegate):
def __init__(self, graph=None, parent=None): def __init__(self, graph=None, parent=None):
...@@ -144,7 +146,7 @@ class EdgeTableModel(PamhyrTableModel): ...@@ -144,7 +146,7 @@ class EdgeTableModel(PamhyrTableModel):
try: try:
if (self._headers[index.column()] == "node1" or if (self._headers[index.column()] == "node1" or
self._headers[index.column()] == "node2"): self._headers[index.column()] == "node2"):
node = self.graph.node(value) node = self._data.node(value)
self._undo.push( self._undo.push(
SetNodeCommand( SetNodeCommand(
self._data, 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