summaryrefslogtreecommitdiff
path: root/examples/triage/files.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/triage/files.cpp')
-rw-r--r--examples/triage/files.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/triage/files.cpp b/examples/triage/files.cpp
index ef640aa8..fcb71cd0 100644
--- a/examples/triage/files.cpp
+++ b/examples/triage/files.cpp
@@ -4,9 +4,10 @@
#include "files.h"
-TriageFilePicker::TriageFilePicker(UIContext* context): m_contextMenuManager(this)
+TriageFilePicker::TriageFilePicker(UIContext* context)
{
m_context = context;
+ m_contextMenuManager = new ContextMenuManager(this);
m_actionHandler.setupActionHandler(this);
QVBoxLayout* layout = new QVBoxLayout();
@@ -53,7 +54,7 @@ TriageFilePicker::TriageFilePicker(UIContext* context): m_contextMenuManager(thi
void TriageFilePicker::contextMenuEvent(QContextMenuEvent*)
{
- m_contextMenuManager.show(&m_contextMenu, &m_actionHandler);
+ m_contextMenuManager->show(&m_contextMenu, &m_actionHandler);
}