mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-12-27 16:29:44 -05:00
Make sure the presets menu has a parent.
This commit is contained in:
parent
bd90ba9326
commit
e9b704d21f
@ -793,7 +793,7 @@ void EditEntryWidget::deleteAllHistoryEntries()
|
||||
|
||||
QMenu* EditEntryWidget::createPresetsMenu()
|
||||
{
|
||||
QMenu* expirePresetsMenu = new QMenu();
|
||||
QMenu* expirePresetsMenu = new QMenu(this);
|
||||
expirePresetsMenu->addAction(tr("Tomorrow"))->setData(QVariant::fromValue(TimeDelta::fromDays(1)));
|
||||
expirePresetsMenu->addSeparator();
|
||||
expirePresetsMenu->addAction(tr("1 week"))->setData(QVariant::fromValue(TimeDelta::fromDays(7)));
|
||||
|
@ -136,7 +136,6 @@ private:
|
||||
AutoTypeAssociationsModel* const m_autoTypeAssocModel;
|
||||
QButtonGroup* const m_autoTypeDefaultSequenceGroup;
|
||||
QButtonGroup* const m_autoTypeWindowSequenceGroup;
|
||||
QMenu* m_expirePresetsMenu;
|
||||
|
||||
Q_DISABLE_COPY(EditEntryWidget)
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user