mapeditor.cpp
branchrelease-1-12-maintained
changeset 77 bdfc1079a723
parent 76 a36a289372a6
child 78 1a72c8f24c6e
     1.1 --- a/mapeditor.cpp	Thu Aug 06 17:33:55 2009 +0000
     1.2 +++ b/mapeditor.cpp	Mon Nov 16 09:07:17 2009 +0000
     1.3 @@ -1872,9 +1872,6 @@
     1.4  		// TODO take care of multiselections
     1.5  	}	
     1.6  
     1.7 -	// FIXME trying to debug save problem
     1.8 -	if (saveFile.length()<1000)
     1.9 -		QMessageBox::critical (0,"Critical error in MapEditor::save",QString("saveFile is too small, try make a backup NOW\nof your original file\nbefore vym writes to\"%1\":\n%2").arg(mapName).arg(saveFile));
    1.10  	if (!saveStringToDisk(fileDir+mapFileName,saveFile))
    1.11  	{
    1.12  		err=aborted;
    1.13 @@ -2866,6 +2863,7 @@
    1.14  	if (bo && xelection.type()==Selection::MapCenter)
    1.15  	{
    1.16  		xelection.unselect();
    1.17 +		xelection.clear();	// Otherwise we might get a segfault when trying to reselect
    1.18  		saveStateRemovingPart (bo, QString ("Delete %1").arg(getName(bo)));
    1.19  		bo=model->removeMapCenter ((MapCenterObj*)bo);
    1.20  		if (bo)