diff --git a/src/cutter.cpp b/src/cutter.cpp index 9d14e194..ea2f9ed2 100644 --- a/src/cutter.cpp +++ b/src/cutter.cpp @@ -195,7 +195,7 @@ QJsonDocument CutterCore::cmdj(const QString &str) if (jsonError.error != QJsonParseError::NoError) { - eprintf("Failed to parse JSON: %s\n", jsonError.errorString().toLocal8Bit().constData()); + eprintf("Failed to parse JSON for command \"%s\": %s\n", str.toLocal8Bit().constData(), jsonError.errorString().toLocal8Bit().constData()); eprintf("%s\n", resString.toLocal8Bit().constData()); } diff --git a/src/widgets/PseudocodeWidget.cpp b/src/widgets/PseudocodeWidget.cpp index 5c64ff15..443787ef 100644 --- a/src/widgets/PseudocodeWidget.cpp +++ b/src/widgets/PseudocodeWidget.cpp @@ -22,14 +22,14 @@ PseudocodeWidget::PseudocodeWidget(QWidget *parent, Qt::WindowFlags flags) : connect(Config(), SIGNAL(fontsUpdated()), this, SLOT(fontsUpdated())); connect(Config(), SIGNAL(colorsUpdated()), this, SLOT(colorsUpdatedSlot())); - connect(Core(), SIGNAL(commentsChanged()), this, SLOT(refreshPseudocode())); - connect(Core(), SIGNAL(flagsChanged()), this, SLOT(refreshPseudocode())); - connect(Core(), SIGNAL(functionRenamed(QString, QString)), this, SLOT(refreshPseudocode())); - connect(Core(), SIGNAL(varsChanged()), this, SLOT(refreshPseudocode())); - connect(Core(), SIGNAL(asmOptionsChanged()), this, SLOT(refreshPseudocode())); - connect(Core(), &CutterCore::instructionChanged, this, [this](/*RVA offset*/) { - refreshPseudocode(); - }); + //connect(Core(), SIGNAL(commentsChanged()), this, SLOT(refreshPseudocode())); + //connect(Core(), SIGNAL(flagsChanged()), this, SLOT(refreshPseudocode())); + //connect(Core(), SIGNAL(functionRenamed(QString, QString)), this, SLOT(refreshPseudocode())); + //connect(Core(), SIGNAL(varsChanged()), this, SLOT(refreshPseudocode())); + //connect(Core(), SIGNAL(asmOptionsChanged()), this, SLOT(refreshPseudocode())); + //connect(Core(), &CutterCore::instructionChanged, this, [this](/*RVA offset*/) { + // refreshPseudocode(); + //}); connect(Core(), SIGNAL(raisePrioritizedMemoryWidget(CutterCore::MemoryWidgetType)), this, SLOT(raisePrioritizedMemoryWidget(CutterCore::MemoryWidgetType))); diff --git a/src/widgets/PseudocodeWidget.ui b/src/widgets/PseudocodeWidget.ui index 9a225abe..0494ca27 100644 --- a/src/widgets/PseudocodeWidget.ui +++ b/src/widgets/PseudocodeWidget.ui @@ -11,7 +11,7 @@ - DockWidget + Pseudocode