Commit 639a22e6 authored by Boudewijn Rempt's avatar Boudewijn Rempt

Dereference after null check

CID:248617
parent af5ec565
......@@ -76,7 +76,7 @@ void PresetHistoryDock::setCanvas(KoCanvasBase * canvas)
if (!m_canvas || !m_canvas->viewManager() || !m_canvas->resourceManager()) return;
connect(canvas->resourceManager(), SIGNAL(canvasResourceChanged(int,QVariant)), SLOT(canvasResourceChanged(int,QVariant)));
connect(m_canvas->resourceManager(), SIGNAL(canvasResourceChanged(int,QVariant)), SLOT(canvasResourceChanged(int,QVariant)));
if (!m_initialized) {
KisConfig cfg(true);
......
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