Applied patch from Rafal Radulski to fix 'Export to Text' (Bug #2904785)

git-svn-id: https://svn.code.sf.net/p/keepassx/code/trunk@352 b624d157-de02-0410-bad0-e51aec6abb33
master
sniperbeamer 15 years ago
parent fd216f78d4
commit 9832573e9f
  1. 14
      src/export/Export_Txt.cpp

@ -44,12 +44,14 @@ bool Export_Txt::exportDatabase(QWidget* GuiParent, IDatabase* db){
for(int e=0;e<entries.size();e++){
SecString password=entries[e]->password();
password.unlock();
file->write(EntryTemplate.arg(entries[e]->title())
.arg(entries[e]->username())
.arg(entries[e]->url())
.arg(password.string())
.arg(entries[e]->comment().replace('\n',"\n "))
.toUtf8());
QString entryText = EntryTemplate.arg(
entries[e]->title(),
entries[e]->username(),
entries[e]->url(),
password.string(),
entries[e]->comment().replace('\n',"\n "));
file->write( entryText.toUtf8() );
password.lock();
}
}