Commit 5805c830 authored by Elvis Angelaccio's avatar Elvis Angelaccio

Stop crashing after right-clicking a KPart entry.

This commit fixes a crash introduced by commit ed3ea7db. When previewing an
archive inside another archive, factory() returns a null pointer and thus the
context menu can't be showed there after a right-click.

BUG: 341809
FIXED-IN: 14.12.1
REVIEW: 121468
parent 9c30f30b
......@@ -948,6 +948,10 @@ void Part::slotSaveAs()
void Part::slotShowContextMenu()
if (!factory()) {
KMenu *popup = static_cast<KMenu *>(factory()->container(QLatin1String("context_menu"), this));
Markdown is supported
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