mapeditor.cpp
changeset 236 22a885118d50
parent 228 654ad4b03c5a
child 243 fad762341d2d
     1.1 --- a/mapeditor.cpp	Wed Mar 08 12:59:07 2006 +0000
     1.2 +++ b/mapeditor.cpp	Wed Mar 08 12:59:08 2006 +0000
     1.3 @@ -30,6 +30,7 @@
     1.4  #include "editxlinkdialog.h"
     1.5  #include "exports.h"
     1.6  #include "extrainfodialog.h"
     1.7 +#include "file.h"
     1.8  #include "linkablemapobj.h"
     1.9  #include "mainwindow.h"
    1.10  #include "misc.h"
    1.11 @@ -2673,7 +2674,7 @@
    1.12  	{
    1.13  		BranchObj *bo=((BranchObj*)selection);
    1.14  
    1.15 -		QFileDialog *fd=new QFileDialog( this,QString ("vym - ")+tr("Load image"));
    1.16 +		QFileDialog *fd=new QFileDialog( this);
    1.17  		fd->setMode (QFileDialog::ExistingFiles);
    1.18  		fd->addFilter (QString (tr("Images") + " (*.png *.bmp *.xbm *.jpg *.png *.xpm *.gif *.pnm)"));
    1.19  		ImagePreview *p =new ImagePreview (fd);
    1.20 @@ -2705,6 +2706,8 @@
    1.21  			adjustCanvasSize();
    1.22  			canvas()->update();
    1.23  		}
    1.24 +		delete (p);
    1.25 +		delete (fd);
    1.26  	}
    1.27  }
    1.28