Fixes editing of notes

Signed-off-by: Robert Carlsen <robert@robertcarlsen.net>
This commit is contained in:
unknown
2009-09-08 14:15:26 -06:00
committed by Robert Carlsen
parent f71d329f14
commit 236878ff7f

View File

@@ -1675,6 +1675,7 @@ void MainWindow::saveNotes()
QTextStream out(&tmp);
out << rideNotes->toPlainText();
tmp.close();
QFile::remove(notesPath);
if (rename(tmpPath.toAscii().constData(),
notesPath.toAscii().constData()) == -1) {
QMessageBox::critical(