Do not update Pseudocode on changes

This commit is contained in:
Florian Märkl 2017-12-24 15:08:54 +01:00
parent 7fd6867b12
commit 4b160e4496
3 changed files with 10 additions and 10 deletions

View File

@ -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());
}

View File

@ -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)));

View File

@ -11,7 +11,7 @@
</rect>
</property>
<property name="windowTitle">
<string>DockWidget</string>
<string>Pseudocode</string>
</property>
<widget class="QWidget" name="dockWidgetContents">
<layout class="QVBoxLayout" name="verticalLayout">