Commit 36a95b14 by yunpeng.song

将FMMsgWnd,hide改为accept,防止内存泄漏

parent 332c8649
......@@ -8,6 +8,7 @@ FMMsgWnd::FMMsgWnd(QDialog *parent) :
{
ui->setupUi(this);
setAttribute(Qt::WA_TranslucentBackground);
setAttribute(Qt::WA_QuitOnClose, false);
this->setWindowFlags(windowFlags() | Qt::FramelessWindowHint);
}
......@@ -87,5 +88,5 @@ void FMMsgWnd::LoginSuccess(const QString &account, const QString &name, const Q
void FMMsgWnd::on_btn_confirm_clicked()
{
this->hide();
this->accept();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment