Make a singleton out of the PythonCaller
Prevents unnecessary instances of PythonCaller.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user