Override closeEvent in MainWindow

This commit is contained in:
Koncord 2017-01-22 15:09:17 +08:00
parent 86d8b0630f
commit 4c2294d105
2 changed files with 6 additions and 0 deletions

View file

@ -133,3 +133,8 @@ void MainWindow::serverSelected()
if(tabWidget->currentIndex() == 0)
actionAdd->setEnabled(true);
}
void MainWindow::closeEvent(QCloseEvent *event)
{
}

View file

@ -18,6 +18,7 @@ public:
explicit MainWindow(QWidget *parent = 0);
virtual ~MainWindow();
protected:
void closeEvent(QCloseEvent * event) Q_DECL_OVERRIDE;
public slots:
bool refresh();
protected slots: