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
This commit is contained in:
		
							parent
							
								
									fd216f78d4
								
							
						
					
					
						commit
						9832573e9f
					
				| 
						 | 
					@ -44,12 +44,14 @@ bool Export_Txt::exportDatabase(QWidget* GuiParent, IDatabase* db){
 | 
				
			||||||
		for(int e=0;e<entries.size();e++){
 | 
							for(int e=0;e<entries.size();e++){
 | 
				
			||||||
			SecString password=entries[e]->password();
 | 
								SecString password=entries[e]->password();
 | 
				
			||||||
			password.unlock();
 | 
								password.unlock();
 | 
				
			||||||
			file->write(EntryTemplate.arg(entries[e]->title())
 | 
								QString entryText = EntryTemplate.arg(
 | 
				
			||||||
									.arg(entries[e]->username())
 | 
											entries[e]->title(),
 | 
				
			||||||
									.arg(entries[e]->url())
 | 
											entries[e]->username(),
 | 
				
			||||||
									.arg(password.string())
 | 
											entries[e]->url(),
 | 
				
			||||||
									.arg(entries[e]->comment().replace('\n',"\n            "))
 | 
											password.string(),
 | 
				
			||||||
									.toUtf8());
 | 
											entries[e]->comment().replace('\n',"\n            "));
 | 
				
			||||||
 | 
														
 | 
				
			||||||
 | 
								file->write( entryText.toUtf8() );
 | 
				
			||||||
			password.lock();
 | 
								password.lock();
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue