-rw-r--r-- | pwmanager/pwmanager/pwm.cpp | 30 | ||||
-rw-r--r-- | pwmanager/pwmanager/pwmdoc.cpp | 25 |
2 files changed, 27 insertions, 28 deletions
diff --git a/pwmanager/pwmanager/pwm.cpp b/pwmanager/pwmanager/pwm.cpp index c511661..66d26d6 100644 --- a/pwmanager/pwmanager/pwm.cpp +++ b/pwmanager/pwmanager/pwm.cpp @@ -728,4 +728,4 @@ void PwM::editPwd_slot3(const QString *category, const int *index, i18n("Couldn't edit the entry.\n" - "Maybe you changed the category and " - "this entry is already present in the new " + "Maybe you changed the category and\n" + "this entry is already present\nin the new " "category?"), @@ -917,3 +917,3 @@ void PwM::exportToText() i18n("Error: Couldn't write to file.\n" - "Please check if you have permission to write " + "Please check if you have permission to write\n" "to the file in that directory."), @@ -929,5 +929,5 @@ bool PwM::importFromText() if (KMessageBox::questionYesNo(this, - i18n("Do you want to import the data " - "into the current document? (If you " - "select \"no\", a new document will be " + i18n("Do you want to import the data\n" + "into the current document? (If you\n" + "select \"no\", a new document will be\n" "opened.)"), @@ -958,3 +958,3 @@ bool PwM::importFromText() i18n("Could not read file-format.\n" - "This seems to be _not_ a valid file " + "This seems to be _not_ a valid file\n" "exported by PwM."), @@ -968,3 +968,3 @@ bool PwM::importFromText() i18n("Could not import file!\n" - "Do you have permission to read this file? " + "Do you have permission to read this file?\n" "Do you have enough free memory?"), @@ -1051,5 +1051,5 @@ bool PwM::importFromGpasman() if (KMessageBox::questionYesNo(this, - i18n("Do you want to import the data " - "into the current document? (If you " - "select \"no\", a new document will be " + i18n("Do you want to import the data\n" + "into the current document? (If you\n" + "select \"no\", a new document will be\n" "opened.)"), @@ -1078,7 +1078,7 @@ bool PwM::importFromGpasman() i18n - ("This is probably the wrong master-password" + ("This is probably the wrong master-password\n" "you have typed in.\n" - "There is no real way to determine the " - "correctness of the password in the Gpasman " - "file-format. But I think this " + "There is no real way to determine the\n" + "correctness of the password in the Gpasman\n" + "file-format. But I think this\n" "password ist wrong.\n" diff --git a/pwmanager/pwmanager/pwmdoc.cpp b/pwmanager/pwmanager/pwmdoc.cpp index 8869f3a..86b6273 100644 --- a/pwmanager/pwmanager/pwmdoc.cpp +++ b/pwmanager/pwmanager/pwmdoc.cpp @@ -1266,7 +1266,10 @@ bool PwMDoc::compressDta(string *d, char algo) return comp.compress(d); - /*US } case PWM_COMPRESS_BZIP2: { + } +#ifndef PWM_EMBEDDED + case PWM_COMPRESS_BZIP2: { CompressBzip2 comp; return comp.compress(d); -*/ - } case PWM_COMPRESS_NONE: { + } +#endif + case PWM_COMPRESS_NONE: { return true; @@ -1286,7 +1289,10 @@ bool PwMDoc::decompressDta(string *d, char algo) return comp.decompress(d); - /*US } case PWM_COMPRESS_BZIP2: { + } +#ifndef PWM_EMBEDDED + case PWM_COMPRESS_BZIP2: { CompressBzip2 comp; return comp.decompress(d); - */ - } case PWM_COMPRESS_NONE: { + } +#endif + case PWM_COMPRESS_NONE: { return true; @@ -3125,4 +3131,2 @@ PwMerror PwMDoc::syncronize(KSyncManager* manager, PwMDoc* syncLocal , PwMDoc* s const string* remotecat = syncRemote->getCategory(catRemote); - //US syncRemote->insertAddressee( inRemote, false ); - //US syncLocal->insertAddressee( inRemote, false ); syncLocal->addEntry(remotecat->c_str(), inRemote, true, false); @@ -3133,3 +3137,2 @@ PwMerror PwMDoc::syncronize(KSyncManager* manager, PwMDoc* syncLocal , PwMDoc* s syncRemote->delEntry(catRemote, indexRemote, true); - //USsyncRemote->removeAddressee( inRemote ); ++deletedPasswordsRemote; @@ -3165,3 +3168,2 @@ PwMerror PwMDoc::syncronize(KSyncManager* manager, PwMDoc* syncLocal , PwMDoc* s syncLocal->delEntry(catLocal, indexLocal, true); - //USsyncLocal->removeAddressee( inLocal ); ++deletedPasswordsLocal; @@ -3175,3 +3177,2 @@ PwMerror PwMDoc::syncronize(KSyncManager* manager, PwMDoc* syncLocal , PwMDoc* s - //USsyncLocal->insertAddressee( inLocal, false ); PwMDataItem newEntry; @@ -3222,4 +3223,2 @@ int PwMDoc::takePwMDataItem( PwMDataItem* local, PwMDataItem* remote, QDateTime - //US QString mCurrentSyncDevice = syncManager->getCurrentSyncDevice(); - if ( localMod == remoteMod ) |