Commit d4dbbb01 authored by Waqar Ahmed's avatar Waqar Ahmed Committed by Christoph Cullmann
Browse files

quickopen: construct context menu on demand

The reason for this change is that quickopen currently takes a lot of
time during startup and running a simple profile shows that a lot of
time was being spent in contruction of this context menu. Hence, now we
construct it on demand.
parent 30c12959
......@@ -17,12 +17,15 @@ QuickOpenLineEdit::QuickOpenLineEdit(QWidget *parent)
: QLineEdit(parent)
setPlaceholderText(i18n("Quick Open Search (configure via context menu)"));
void QuickOpenLineEdit::contextMenuEvent(QContextMenuEvent *event)
// on demand construction
if (!menu) {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment