fix(editor): explorer context menu opens in a dialog box if right-clicked when the window was unfocused
This commit is contained in:
parent
66d3f80073
commit
8c2474abbf
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue