Check for vcd export dependencies.
The TraceAnalyzer now checks if the python module pyvcd is installed and if not prints a warning and disables the export option.
This commit is contained in:
@@ -121,7 +121,11 @@ void TraceAnalyzer::openTracefile(const QString &path)
|
||||
// Enable actions
|
||||
ui->actionReload_all->setEnabled(true);
|
||||
ui->actionSaveChangesToDB->setEnabled(true);
|
||||
ui->actionExportAsVCD->setEnabled(true);
|
||||
|
||||
PythonCaller pythonCaller;
|
||||
if (pythonCaller.vcdExportDependenciesAvailable())
|
||||
ui->actionExportAsVCD->setEnabled(true);
|
||||
|
||||
ui->actionClose_all->setEnabled(true);
|
||||
ui->actionTest->setEnabled(true);
|
||||
ui->actionMetrics->setEnabled(true);
|
||||
|
||||
Reference in New Issue
Block a user