From 130996f593f5b5dfa802f8c5a41c716454ba6db8 Mon Sep 17 00:00:00 2001 From: xarkes Date: Tue, 21 Nov 2017 15:33:15 +0100 Subject: [PATCH] Fix #74 --- src/widgets/DisassemblerGraphView.cpp | 3 ++- src/widgets/FunctionsWidget.cpp | 6 ------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/src/widgets/DisassemblerGraphView.cpp b/src/widgets/DisassemblerGraphView.cpp index 1246f1b6..cb2335cb 100644 --- a/src/widgets/DisassemblerGraphView.cpp +++ b/src/widgets/DisassemblerGraphView.cpp @@ -1533,6 +1533,7 @@ void DisassemblerGraphView::loadCurrentGraph() Function f; f.ready = true; f.entry = func["offset"].toInt(); + this->parentWidget()->setWindowTitle(func["name"].toString()); f.update_id = anal.update_id; for (QJsonValueRef blockRef : func["blocks"].toArray()) { @@ -1820,7 +1821,7 @@ void DisassemblerGraphView::colorsUpdatedSlot() */ fontChanged(); - loadCurrentGraph(); + refreshView(); } void DisassemblerGraphView::fontsUpdatedSlot() diff --git a/src/widgets/FunctionsWidget.cpp b/src/widgets/FunctionsWidget.cpp index 2f31b002..1cc5e8a8 100644 --- a/src/widgets/FunctionsWidget.cpp +++ b/src/widgets/FunctionsWidget.cpp @@ -275,7 +275,6 @@ bool FunctionSortFilterProxyModel::filterAcceptsRow(int row, const QModelIndex & return function.name.contains(filterRegExp()); } - bool FunctionSortFilterProxyModel::lessThan(const QModelIndex &left, const QModelIndex &right) const { if (!left.isValid() || !right.isValid()) @@ -320,11 +319,6 @@ bool FunctionSortFilterProxyModel::lessThan(const QModelIndex &left, const QMode } } - - - - - FunctionsWidget::FunctionsWidget(MainWindow *main, QWidget *parent) : QDockWidget(parent), ui(new Ui::FunctionsWidget),