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