Backup deleted entries

Fixed compilation errors on win32

git-svn-id: https://svn.code.sf.net/p/keepassx/code/trunk@233 b624d157-de02-0410-bad0-e51aec6abb33
This commit is contained in:
sniperbeamer
2008-10-10 15:57:37 +00:00
parent f88ca3f4c0
commit bb80c9616a
3 changed files with 27 additions and 9 deletions

View File

@@ -23,7 +23,10 @@
#include "PasswordGenDlg.h"
#include "EditEntryDlg.h"
#include "CalendarDlg.h"
#ifdef GLOBAL_AUTOTYPE
#include "TargetWindowDlg.h"
#endif
CEditEntryDlg::CEditEntryDlg(IDatabase* _db, IEntryHandle* _entry,QWidget* parent, bool modal, bool newEntry)
: QDialog(parent)
@@ -200,9 +203,10 @@ void CEditEntryDlg::OnButtonOK()
ModFlag=true;
if(ModFlag){
QDateTime now = QDateTime::currentDateTime();
entry->setExpire(DateTime_Expire->dateTime());
entry->setLastAccess(QDateTime::currentDateTime());
entry->setLastMod(QDateTime::currentDateTime());
entry->setLastAccess(now);
entry->setLastMod(now);
entry->setTitle(Edit_Title->text());
entry->setUsername(Edit_UserName->text());
entry->setUrl(Edit_URL->text());
@@ -449,7 +453,7 @@ void CEditEntryDlg::OnSelectTarget(){
QString text = Edit_Comment->toPlainText();
if (!text.isEmpty())
text.append("\n");
Edit_Comment->setPlainText(text.append(dlg.windowTitle()));
Edit_Comment->setPlainText(text.append("Auto-Type-Window: "+dlg.windowTitle()));
}
#endif
}