aboutsummaryrefslogtreecommitdiffstats
path: root/gui/yosystab.cc
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2018-07-17 17:24:01 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2018-07-17 17:24:01 +0200
commit3ef85b30b461972d264d7e259eca25762356c16e (patch)
treeb8a1761ce3570bb5fac03cafc8ebf550f0fe61e7 /gui/yosystab.cc
parent2eb783d626a9a17baf70d2f7750be3c11623d5bc (diff)
downloadnextpnr-3ef85b30b461972d264d7e259eca25762356c16e.tar.gz
nextpnr-3ef85b30b461972d264d7e259eca25762356c16e.tar.bz2
nextpnr-3ef85b30b461972d264d7e259eca25762356c16e.zip
proper fix
Diffstat (limited to 'gui/yosystab.cc')
-rw-r--r--gui/yosystab.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/gui/yosystab.cc b/gui/yosystab.cc
index d83b969e..9bbd9c12 100644
--- a/gui/yosystab.cc
+++ b/gui/yosystab.cc
@@ -61,9 +61,9 @@ YosysTab::YosysTab(QString folder, QWidget *parent) : QWidget(parent)
connect(process, SIGNAL(readyReadStandardError()), this, SLOT(onReadyReadStandardError()));
connect(process, SIGNAL(readyReadStandardOutput()), this, SLOT(onReadyReadStandardOutput()));
connect(process, &QProcess::started, this, [this] { lineEdit->setEnabled(true); });
-/*
+
#if QT_VERSION < QT_VERSION_CHECK(5, 6, 0)
- connect(process, &QProcess::error, this, [this](QProcess::ProcessError error) {
+ connect(process, static_cast<void (QProcess::*)(QProcess::ProcessError)>(&QProcess::error), this, [this](QProcess::ProcessError error) {
#else
connect(process, &QProcess::errorOccurred, this, [this](QProcess::ProcessError error) {
#endif
@@ -74,7 +74,6 @@ YosysTab::YosysTab(QString folder, QWidget *parent) : QWidget(parent)
Q_EMIT deleteLater();
}
});
-*/
process->setWorkingDirectory(folder);
process->start("yosys");
}