diff -r bd98be838da9 -r 85683324f94a mapeditor.cpp --- a/mapeditor.cpp Mon Mar 16 15:40:49 2009 +0000 +++ b/mapeditor.cpp Thu Mar 19 11:48:33 2009 +0000 @@ -301,6 +301,9 @@ mapAttr+= attribut("author",model->getAuthor()) + attribut("comment",model->getComment()) + attribut("date",model->getDate()) + + attribut("date",model->getDate()) + + attribut("countBranches", QString().number(model->countBranches())) + + attribut("backgroundColor", mapScene->backgroundBrush().color().name() ) + attribut("selectionColor", xelection.getColor().name() ) + attribut("linkStyle", ls ) + @@ -1854,7 +1857,7 @@ if (!saveStringToDisk(fileDir+mapFileName,saveFile)) { err=aborted; - QMessageBox::critical (0,"Critical error in MapEditor::save",QString("could not sage %1").arg(fileDir+mapFileName)); + QMessageBox::critical (0,"Critical error in MapEditor::save",QString("could not save %1").arg(fileDir+mapFileName)); } if (zipped) @@ -5283,6 +5286,12 @@ void MapEditor::autosave() { + if (filePath=="") + { + if (debug) cout <<" ME::autosave rejected, no filepath available\n"; + return; + } + QDateTime now=QDateTime().currentDateTime(); /* FIXME debug cout << "ME::autosave checking "<0) return;