From 4f4e4b38052e55e63ec6c202fb6026f0d57445f1 Mon Sep 17 00:00:00 2001 From: Ilya Zhuravlev Date: Fri, 25 Dec 2020 20:20:37 -0500 Subject: [PATCH] macro_recorder: don't use QGridLayout::rowCount as it returns wrong value https://stackoverflow.com/a/13406780 --- src/main/python/macro_recorder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/python/macro_recorder.py b/src/main/python/macro_recorder.py index 4ffabf8..fbac366 100644 --- a/src/main/python/macro_recorder.py +++ b/src/main/python/macro_recorder.py @@ -69,7 +69,7 @@ class MacroTab(QVBoxLayout): line = MacroLine(self, act) line.changed.connect(self.on_change) self.lines.append(line) - line.insert(self.container.rowCount()) + line.insert(len(self.lines) - 1) self.changed.emit() def on_add(self):