Make sure the presets menu has a parent.

This commit is contained in:
Florian Geyer 2012-11-02 16:21:32 +01:00
parent bd90ba9326
commit e9b704d21f
2 changed files with 1 additions and 2 deletions

View File

@ -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)));

View File

@ -136,7 +136,6 @@ private:
AutoTypeAssociationsModel* const m_autoTypeAssocModel;
QButtonGroup* const m_autoTypeDefaultSequenceGroup;
QButtonGroup* const m_autoTypeWindowSequenceGroup;
QMenu* m_expirePresetsMenu;
Q_DISABLE_COPY(EditEntryWidget)
};