mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-04-20 19:44:59 +00:00
fix: qmenu memory leak
This commit is contained in:
parent
02457245bb
commit
da60163b3d
1 changed files with 3 additions and 3 deletions
|
@ -79,9 +79,9 @@ Dialog::Dialog(QWidget *parent) : QDialog(parent), ui(new Ui::Dialog)
|
|||
|
||||
m_hideIcon = new QSystemTrayIcon(this);
|
||||
m_hideIcon->setIcon(QIcon(":/image/tray/logo.png"));
|
||||
m_menu = new QMenu();
|
||||
m_quit = new QAction();
|
||||
m_showWindow = new QAction();
|
||||
m_menu = new QMenu(this);
|
||||
m_quit = new QAction(this);
|
||||
m_showWindow = new QAction(this);
|
||||
m_showWindow->setText(tr("show"));
|
||||
m_quit->setText(tr("quit"));
|
||||
m_menu->addAction(m_showWindow);
|
||||
|
|
Loading…
Add table
Reference in a new issue