[Kst] kdeextragear-2/kst/kst
George Staikos
staikos at kde.org
Tue Jun 24 21:29:59 CEST 2003
CVS commit by staikos:
revert a small part of the last patch, and add backup file support
M +1 -1 kst.cpp 1.29
M +2 -0 kstdoc.cpp 1.28
--- kdeextragear-2/kst/kst/kst.cpp #1.28:1.29
@@ -500,5 +500,5 @@ void KstApp::readOptions() {
void KstApp::saveProperties(KConfig *config) {
- QString name = doc->getAbsFilePath() + doc->getTitle();
+ QString name = doc->getAbsFilePath();
if (!name.isEmpty() && doc->getTitle() != i18n("Untitled")) {
config->writePathEntry("Document", name);
--- kdeextragear-2/kst/kst/kstdoc.cpp #1.27:1.28
@@ -39,4 +39,5 @@
#include <kfiledialog.h>
#include <kcolordialog.h>
+#include <ksavefile.h>
#include <kapplication.h>
@@ -225,4 +226,5 @@ bool KstDoc::openDocument(const KURL &ur
bool KstDoc::saveDocument(const QString &filename) {
int i;
+ KSaveFile::backupFile(filename);
QFile f(filename);
More information about the Kst
mailing list