Skip to content

Commit

Permalink
Refs #4233. Delete temp save(~) and stop saving over previous project
Browse files Browse the repository at this point in the history
  • Loading branch information
Robert-Whitley committed Mar 20, 2012
1 parent b3072fc commit ed038fc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Code/Mantid/MantidPlot/src/ApplicationWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6052,6 +6052,9 @@ bool ApplicationWindow::saveProject(bool compress)
savingTimerId=startTimer(autoSaveTime*60000);
} else
savingTimerId=0;

// Back-up file to be removed because file has successfully saved.
QFile::remove(projectname + "~");

QApplication::restoreOverrideCursor();
return true;
Expand Down Expand Up @@ -9374,6 +9377,7 @@ void ApplicationWindow::newProject()
mantidUI->saveProject(saved);
clearLogInfo();
setWindowTitle(tr("MantidPlot - untitled"));//Mantid
projectname = "untitled";
}

void ApplicationWindow::savedProject()
Expand Down

0 comments on commit ed038fc

Please sign in to comment.