mirror of https://gitlab.com/pamhyr/pamhyr2
Network: Fix #22.
parent
c69cbdb34e
commit
08f01aee69
|
|
@ -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):
|
||||||
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,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue