vymmodel.cpp
changeset 844 c48bb42fb977
parent 842 bec082472471
child 845 b98c1793bb8b
     1.1 --- a/vymmodel.cpp	Tue Apr 06 13:30:07 2010 +0000
     1.2 +++ b/vymmodel.cpp	Wed Apr 07 10:45:24 2010 +0000
     1.3 @@ -67,10 +67,12 @@
     1.4  	autosaveTimer->stop();
     1.5  	fileChangedTimer->stop();
     1.6  	clear();
     1.7 +	if (mapEditor) delete (mapEditor);
     1.8  }	
     1.9  
    1.10  void VymModel::clear() 
    1.11  {
    1.12 +	unselect();
    1.13  	while (rootItem->childCount() >0)
    1.14  		deleteItem (rootItem->getChildNum(0) );
    1.15  }