Make a singleton out of the PythonCaller

Prevents unnecessary instances of PythonCaller.
This commit is contained in:
2021-08-16 15:35:34 +02:00
parent a126fa86bf
commit 65aa8e83e0
6 changed files with 21 additions and 17 deletions

View File

@@ -93,8 +93,7 @@ void TraceFileTab::exportAsVCD()
QString filename = QFileDialog::getSaveFileName(this, "Export to VCD", "",
"VCD files (*.vcd)");
PythonCaller pythonCaller;
QString dump = pythonCaller.exportAsVcd(path);
QString dump = PythonCaller::instance().exportAsVcd(path);
if (filename != "") {
QFile file(filename);