Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Donald Haase
Cockatrice
Commits
061fd5a8
Commit
061fd5a8
authored
Feb 25, 2015
by
Fabio Bas
Browse files
Workaround for duplicated dialogs on close
parent
399d4bf5
Changes
1
Hide whitespace changes
Inline
Side-by-side
cockatrice/src/window_main.cpp
View file @
061fd5a8
...
...
@@ -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
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment