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
@@ -483,13 +483,18 @@ void DrawPad::importPage()
483{ 483{
484 ImportDialog importDialog(this); 484 ImportDialog importDialog(this);
485 485
486 importDialog.showMaximized(); 486 importDialog.showMaximized();
487 487
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 }
491} 496}
492 497
493void DrawPad::exportPage() 498void DrawPad::exportPage()
494{ 499{
495 ExportDialog exportDialog(m_pDrawPadCanvas->pagePosition(), m_pDrawPadCanvas->pageCount(), this); 500 ExportDialog exportDialog(m_pDrawPadCanvas->pagePosition(), m_pDrawPadCanvas->pageCount(), this);