Commit 061fd5a8 authored by Fabio Bas's avatar Fabio Bas
Browse files

Workaround for duplicated dialogs on close

parent 399d4bf5
......@@ -423,9 +423,16 @@ MainWindow::~MainWindow()
void MainWindow::closeEvent(QCloseEvent *event)
{
// workaround Qt bug where closeEvent gets called twice
static bool bClosingDown=false;
if(bClosingDown)
return;
bClosingDown=true;
if (!tabSupervisor->closeRequest())
{
event->ignore();
bClosingDown=false;
return;
}
......
Supports Markdown
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