Skip to content

Commit

Permalink
facepalm
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr-Auto committed Apr 28, 2024
1 parent 277a09e commit 8a32089
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/QtHelpers/WidgetDatabaseView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/Views/ViewOnline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion src/Views/ViewToolbar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 8a32089

Please sign in to comment.