This commit is contained in:
xarkes 2017-11-21 15:33:15 +01:00
parent bacaca1a0b
commit 130996f593
2 changed files with 2 additions and 7 deletions

View File

@ -1533,6 +1533,7 @@ void DisassemblerGraphView::loadCurrentGraph()
Function f; Function f;
f.ready = true; f.ready = true;
f.entry = func["offset"].toInt(); f.entry = func["offset"].toInt();
this->parentWidget()->setWindowTitle(func["name"].toString());
f.update_id = anal.update_id; f.update_id = anal.update_id;
for (QJsonValueRef blockRef : func["blocks"].toArray()) { for (QJsonValueRef blockRef : func["blocks"].toArray()) {
@ -1820,7 +1821,7 @@ void DisassemblerGraphView::colorsUpdatedSlot()
*/ */
fontChanged(); fontChanged();
loadCurrentGraph(); refreshView();
} }
void DisassemblerGraphView::fontsUpdatedSlot() void DisassemblerGraphView::fontsUpdatedSlot()

View File

@ -275,7 +275,6 @@ bool FunctionSortFilterProxyModel::filterAcceptsRow(int row, const QModelIndex &
return function.name.contains(filterRegExp()); return function.name.contains(filterRegExp());
} }
bool FunctionSortFilterProxyModel::lessThan(const QModelIndex &left, const QModelIndex &right) const bool FunctionSortFilterProxyModel::lessThan(const QModelIndex &left, const QModelIndex &right) const
{ {
if (!left.isValid() || !right.isValid()) if (!left.isValid() || !right.isValid())
@ -320,11 +319,6 @@ bool FunctionSortFilterProxyModel::lessThan(const QModelIndex &left, const QMode
} }
} }
FunctionsWidget::FunctionsWidget(MainWindow *main, QWidget *parent) : FunctionsWidget::FunctionsWidget(MainWindow *main, QWidget *parent) :
QDockWidget(parent), QDockWidget(parent),
ui(new Ui::FunctionsWidget), ui(new Ui::FunctionsWidget),