summaryrefslogtreecommitdiff
path: root/noncore/graphics/drawpad
Unidiff
Diffstat (limited to 'noncore/graphics/drawpad') (more/less context) (show whitespace changes)
-rw-r--r--noncore/graphics/drawpad/importdialog.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/noncore/graphics/drawpad/importdialog.cpp b/noncore/graphics/drawpad/importdialog.cpp
index 0783ed8..1c447cb 100644
--- a/noncore/graphics/drawpad/importdialog.cpp
+++ b/noncore/graphics/drawpad/importdialog.cpp
@@ -68,5 +68,7 @@ ImportDialog::~ImportDialog()
68const DocLnk* ImportDialog::selected() 68const DocLnk* ImportDialog::selected()
69{ 69{
70 return m_pFileSelector->selected(); 70 // FIXME change from pointer to reference -zecke
71 DocLnk *lnk = new DocLnk( m_pFileSelector->selectedDocument() );
72 return lnk;
71} 73}
72 74
@@ -80,5 +82,5 @@ void ImportDialog::fileChanged()
80void ImportDialog::preview() 82void ImportDialog::preview()
81{ 83{
82 const DocLnk* docLnk = m_pFileSelector->selected(); 84 const DocLnk* docLnk = selected();
83 85
84 if (docLnk) { 86 if (docLnk) {