diff -r a36a289372a6 -r bdfc1079a723 mapeditor.cpp --- a/mapeditor.cpp Thu Aug 06 17:33:55 2009 +0000 +++ b/mapeditor.cpp Mon Nov 16 09:07:17 2009 +0000 @@ -1872,9 +1872,6 @@ // TODO take care of multiselections } - // FIXME trying to debug save problem - if (saveFile.length()<1000) - 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)); if (!saveStringToDisk(fileDir+mapFileName,saveFile)) { err=aborted; @@ -2866,6 +2863,7 @@ if (bo && xelection.type()==Selection::MapCenter) { xelection.unselect(); + xelection.clear(); // Otherwise we might get a segfault when trying to reselect saveStateRemovingPart (bo, QString ("Delete %1").arg(getName(bo))); bo=model->removeMapCenter ((MapCenterObj*)bo); if (bo)