mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-22 19:08:58 +03:00
Fix small leak in TrayIcon
This commit is contained in:
parent
ec6f0f9296
commit
795b8fb7dd
1 changed files with 4 additions and 4 deletions
|
@ -107,16 +107,16 @@ TrayIcon::TrayIcon(const QString &filename, QWidget *parent)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
QMenu *menu = new QMenu(parent);
|
QMenu *menu = new QMenu(parent);
|
||||||
viewAction_ = new QAction(tr("Show"), parent);
|
setContextMenu(menu);
|
||||||
quitAction_ = new QAction(tr("Quit"), parent);
|
|
||||||
|
viewAction_ = new QAction(tr("Show"), this);
|
||||||
|
quitAction_ = new QAction(tr("Quit"), this);
|
||||||
|
|
||||||
connect(viewAction_, SIGNAL(triggered()), parent, SLOT(show()));
|
connect(viewAction_, SIGNAL(triggered()), parent, SLOT(show()));
|
||||||
connect(quitAction_, &QAction::triggered, this, QApplication::quit);
|
connect(quitAction_, &QAction::triggered, this, QApplication::quit);
|
||||||
|
|
||||||
menu->addAction(viewAction_);
|
menu->addAction(viewAction_);
|
||||||
menu->addAction(quitAction_);
|
menu->addAction(quitAction_);
|
||||||
|
|
||||||
setContextMenu(menu);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Reference in a new issue