Commit 9901dde3 authored by Martin Flöser's avatar Martin Flöser
Browse files

Merge branch 'Applications/16.08'

parents 2cd4e5f7 4b280d09
......@@ -277,7 +277,7 @@ void kpMainWindow::slotEnablePaste ()
// It's faster to test for QMimeData::hasText() first due to the
// lazy evaluation of the '||' operator.
const bool shouldEnable = (md->hasText() || kpSelectionDrag::canDecode(md));
const bool shouldEnable = md && (md->hasText() || kpSelectionDrag::canDecode(md));
d->actionPasteInNewWindow->setEnabled(shouldEnable);
d->actionPaste->setEnabled(shouldEnable);
......
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