fix(editor): explorer context menu opens in a dialog box if right-clicked when the window was unfocused

This commit is contained in:
maelstrom 2025-04-17 15:22:27 +02:00
parent 66d3f80073
commit 8c2474abbf

View file

@ -6,7 +6,8 @@
ExplorerView::ExplorerView(QWidget* parent): ExplorerView::ExplorerView(QWidget* parent):
QTreeView(parent), QTreeView(parent),
model(ExplorerModel(std::dynamic_pointer_cast<Instance>(gDataModel))) { model(ExplorerModel(std::dynamic_pointer_cast<Instance>(gDataModel))),
contextMenu(this) {
this->setModel(&model); this->setModel(&model);
// Disabling the root decoration will cause the expand/collapse chevrons to be hidden too, we don't want that // Disabling the root decoration will cause the expand/collapse chevrons to be hidden too, we don't want that