summary refs log tree commit diff
path: root/src/TrayIcon.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/TrayIcon.cpp')
-rw-r--r--src/TrayIcon.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/TrayIcon.cpp b/src/TrayIcon.cpp

index f2a01432..db0130c8 100644 --- a/src/TrayIcon.cpp +++ b/src/TrayIcon.cpp
@@ -107,16 +107,16 @@ TrayIcon::TrayIcon(const QString &filename, QWidget *parent) #endif QMenu *menu = new QMenu(parent); - viewAction_ = new QAction(tr("Show"), parent); - quitAction_ = new QAction(tr("Quit"), parent); + setContextMenu(menu); + + viewAction_ = new QAction(tr("Show"), this); + quitAction_ = new QAction(tr("Quit"), this); connect(viewAction_, SIGNAL(triggered()), parent, SLOT(show())); connect(quitAction_, &QAction::triggered, this, QApplication::quit); menu->addAction(viewAction_); menu->addAction(quitAction_); - - setContextMenu(menu); } void