From 8a3208942dedafc01b29677ca74c9c020d036f3b Mon Sep 17 00:00:00 2001 From: Mr-Auto <36127424+Mr-Auto@users.noreply.github.com> Date: Sun, 28 Apr 2024 20:37:00 +0200 Subject: [PATCH] facepalm --- src/QtHelpers/WidgetDatabaseView.cpp | 2 +- src/Views/ViewOnline.cpp | 2 +- src/Views/ViewToolbar.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/QtHelpers/WidgetDatabaseView.cpp b/src/QtHelpers/WidgetDatabaseView.cpp index 88dd8c2..0706f41 100644 --- a/src/QtHelpers/WidgetDatabaseView.cpp +++ b/src/QtHelpers/WidgetDatabaseView.cpp @@ -71,7 +71,7 @@ S2Plugin::WidgetDatabaseView::WidgetDatabaseView(MemoryFieldType type, QWidget* mMainTreeView = new TreeViewMemoryFields(this); mMainTreeView->setEnableChangeHighlighting(false); - mMainTreeView->addMemoryFields(Configuration::get()->typeFields(type), std::string(config->getTypeDisplayName(type)), 0); + mMainTreeView->addMemoryFields(config->typeFields(type), std::string(config->getTypeDisplayName(type)), 0); QObject::connect(mMainTreeView, &TreeViewMemoryFields::memoryFieldValueUpdated, this, &WidgetDatabaseView::fieldUpdated); QObject::connect(mMainTreeView, &TreeViewMemoryFields::expanded, this, &WidgetDatabaseView::fieldExpanded); tabLookup->layout()->addWidget(mMainTreeView); diff --git a/src/Views/ViewOnline.cpp b/src/Views/ViewOnline.cpp index 016faf9..a719f8c 100644 --- a/src/Views/ViewOnline.cpp +++ b/src/Views/ViewOnline.cpp @@ -12,7 +12,6 @@ S2Plugin::ViewOnline::ViewOnline(QWidget* parent) : QWidget(parent) initializeUI(); setWindowIcon(getCavemanIcon()); setWindowTitle("Online"); - refreshOnline(); mMainTreeView->setColumnWidth(gsColField, 125); mMainTreeView->setColumnWidth(gsColValueHex, 125); mMainTreeView->setColumnWidth(gsColMemoryAddress, 125); @@ -56,6 +55,7 @@ void S2Plugin::ViewOnline::initializeUI() mMainTreeView = new TreeViewMemoryFields(this); mMainTreeView->addMemoryFields(Configuration::get()->typeFields(MemoryFieldType::Online), "Online", Spelunky2::get()->get_OnlinePtr()); + mMainTreeView->activeColumns.disable(gsColComparisonValue).disable(gsColComparisonValueHex); mMainLayout->addWidget(mMainTreeView); diff --git a/src/Views/ViewToolbar.cpp b/src/Views/ViewToolbar.cpp index 078f6fd..f4daced 100644 --- a/src/Views/ViewToolbar.cpp +++ b/src/Views/ViewToolbar.cpp @@ -135,7 +135,7 @@ S2Plugin::ViewEntityDB* S2Plugin::ViewToolbar::showEntityDB() if (Spelunky2::is_loaded() && Configuration::is_loaded() && Spelunky2::get()->get_EntityDB().isValid()) { auto w = new ViewEntityDB(); - auto win = mMDIArea->addSubWindow(new ViewEntityDB()); + auto win = mMDIArea->addSubWindow(w); win->setVisible(true); win->setAttribute(Qt::WA_DeleteOnClose); return w;