From e9b704d21f76c41442f79721f373c78fc44bd503 Mon Sep 17 00:00:00 2001 From: Florian Geyer Date: Fri, 2 Nov 2012 16:21:32 +0100 Subject: [PATCH] Make sure the presets menu has a parent. --- src/gui/entry/EditEntryWidget.cpp | 2 +- src/gui/entry/EditEntryWidget.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gui/entry/EditEntryWidget.cpp b/src/gui/entry/EditEntryWidget.cpp index 201a4666f..c3cf05232 100644 --- a/src/gui/entry/EditEntryWidget.cpp +++ b/src/gui/entry/EditEntryWidget.cpp @@ -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))); diff --git a/src/gui/entry/EditEntryWidget.h b/src/gui/entry/EditEntryWidget.h index 459ca42f1..4023ecf7e 100644 --- a/src/gui/entry/EditEntryWidget.h +++ b/src/gui/entry/EditEntryWidget.h @@ -136,7 +136,6 @@ private: AutoTypeAssociationsModel* const m_autoTypeAssocModel; QButtonGroup* const m_autoTypeDefaultSequenceGroup; QButtonGroup* const m_autoTypeWindowSequenceGroup; - QMenu* m_expirePresetsMenu; Q_DISABLE_COPY(EditEntryWidget) };