summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/graphics/drawpad/drawpad.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/noncore/graphics/drawpad/drawpad.cpp b/noncore/graphics/drawpad/drawpad.cpp
index 5c7e541..aae9ab0 100644
--- a/noncore/graphics/drawpad/drawpad.cpp
+++ b/noncore/graphics/drawpad/drawpad.cpp
@@ -488,3 +488,8 @@ void DrawPad::importPage()
488 if (importDialog.exec() == QDialog::Accepted) { 488 if (importDialog.exec() == QDialog::Accepted) {
489 m_pDrawPadCanvas->importPage(importDialog.selected()->file()); 489 const DocLnk* docLnk = importDialog.selected();
490
491 if (docLnk) {
492 m_pDrawPadCanvas->importPage(docLnk->file());
493 delete docLnk;
494 }
490 } 495 }