|
|
@ -163,7 +163,7 @@ bool DOCConduit::pcTextChanged(TQString txtfn)
|
|
|
|
KMD5 docmd5;
|
|
|
|
KMD5 docmd5;
|
|
|
|
TQFile txtfile(txtfn);
|
|
|
|
TQFile txtfile(txtfn);
|
|
|
|
if (txtfile.open(IO_ReadOnly)){
|
|
|
|
if (txtfile.open(IO_ReadOnly)){
|
|
|
|
docmd5.update(*TQT_TQIODEVICE(&txtfile));
|
|
|
|
docmd5.update(txtfile);
|
|
|
|
TQString thisDigest(docmd5.hexDigest() /* .data() */);
|
|
|
|
TQString thisDigest(docmd5.hexDigest() /* .data() */);
|
|
|
|
#ifdef DEBUG
|
|
|
|
#ifdef DEBUG
|
|
|
|
DEBUGKPILOT<<"New digest is "<<thisDigest<<endl;
|
|
|
|
DEBUGKPILOT<<"New digest is "<<thisDigest<<endl;
|
|
|
@ -362,7 +362,7 @@ bool DOCConduit::doSync(docSyncInfo &sinfo)
|
|
|
|
KMD5 docmd5;
|
|
|
|
KMD5 docmd5;
|
|
|
|
TQFile txtfile(docconverter.txtFilename());
|
|
|
|
TQFile txtfile(docconverter.txtFilename());
|
|
|
|
if (txtfile.open(IO_ReadOnly)) {
|
|
|
|
if (txtfile.open(IO_ReadOnly)) {
|
|
|
|
docmd5.update(*TQT_TQIODEVICE(&txtfile));
|
|
|
|
docmd5.update(txtfile);
|
|
|
|
TQString thisDigest(docmd5.hexDigest() /* .data() */);
|
|
|
|
TQString thisDigest(docmd5.hexDigest() /* .data() */);
|
|
|
|
DOCConduitSettings::self()->config()->writeEntry(docconverter.txtFilename(), thisDigest);
|
|
|
|
DOCConduitSettings::self()->config()->writeEntry(docconverter.txtFilename(), thisDigest);
|
|
|
|
DOCConduitSettings::self()->config()->sync();
|
|
|
|
DOCConduitSettings::self()->config()->sync();
|
|
|
|