Changeset View
Changeset View
Standalone View
Standalone View
src/document/katedocument.cpp
Show First 20 Lines • Show All 2403 Lines • ▼ Show 20 Line(s) | 2343 | { | |||
---|---|---|---|---|---|
2404 | removeTrailingSpaces(); | 2404 | removeTrailingSpaces(); | ||
2405 | 2405 | | |||
2406 | // | 2406 | // | ||
2407 | // try to save | 2407 | // try to save | ||
2408 | // | 2408 | // | ||
2409 | if (!m_buffer->saveFile(localFilePath())) { | 2409 | if (!m_buffer->saveFile(localFilePath())) { | ||
2410 | // add m_file again to dirwatch | 2410 | // add m_file again to dirwatch | ||
2411 | activateDirWatch(oldPath); | 2411 | activateDirWatch(oldPath); | ||
2412 | KMessageBox::error(dialogParent(), i18n("The document could not be saved, as it was not possible to write to %1.\n\nCheck that you have write access to this file or that enough disk space is available.", this->url().toDisplayString(QUrl::PreferLocalFile))); | 2412 | KMessageBox::error(dialogParent(), i18n("The document could not be saved, as it was not possible to write to %1.\nCheck that you have write access to this file or that enough disk space is available.\nThe original file may be lost or damaged. Don't quit the application until the file is successfully written.", this->url().toDisplayString(QUrl::PreferLocalFile))); | ||
2413 | return false; | 2413 | return false; | ||
2414 | } | 2414 | } | ||
2415 | 2415 | | |||
2416 | // update the checksum | 2416 | // update the checksum | ||
2417 | createDigest(); | 2417 | createDigest(); | ||
2418 | 2418 | | |||
2419 | // add m_file again to dirwatch | 2419 | // add m_file again to dirwatch | ||
2420 | activateDirWatch(); | 2420 | activateDirWatch(); | ||
▲ Show 20 Lines • Show All 3569 Lines • Show Last 20 Lines |