Update EditEntryDlg.cpp: Add 2 years to expire-menu

qt5
thooge 3 years ago committed by GitHub
parent 06b7abe50f
commit 90f5c2bd49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      src/dialogs/EditEntryDlg.cpp

@ -71,6 +71,7 @@ CEditEntryDlg::CEditEntryDlg(IDatabase* _db, IEntryHandle* _entry,QWidget* paren
ExpirePresetsMenu->addAction(tr("6 Months"))->setData(180); ExpirePresetsMenu->addAction(tr("6 Months"))->setData(180);
ExpirePresetsMenu->addSeparator(); ExpirePresetsMenu->addSeparator();
ExpirePresetsMenu->addAction(tr("1 Year"))->setData(365); ExpirePresetsMenu->addAction(tr("1 Year"))->setData(365);
ExpirePresetsMenu->addAction(tr("2 Years"))->setData(730);
ButtonExpirePresets->setMenu(ExpirePresetsMenu); ButtonExpirePresets->setMenu(ExpirePresetsMenu);
QAction* actionCalendar = new QAction(tr("Calendar..."),ButtonExpirePresets); QAction* actionCalendar = new QAction(tr("Calendar..."),ButtonExpirePresets);
actionCalendar->setData(-1); actionCalendar->setData(-1);