summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2012-08-23 13:31:54 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2012-08-23 13:31:54 +0200
commit05732251c115b3538879ca523c461572115c6526 (patch)
tree386b1a01599a55642f7f6d292a58380fa6ce6b0b
parent45336cbecb6eff3317a365f271dc548c297f4ffa (diff)
Block click on buttons while waiting for close.
-rw-r--r--client/mainwindow.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/client/mainwindow.cc b/client/mainwindow.cc
index 121412e..9e62e5d 100644
--- a/client/mainwindow.cc
+++ b/client/mainwindow.cc
@@ -164,6 +164,8 @@ bool MainWindow::hasOpen(void *me)
void MainWindow::closeCommit()
{
+ if(closing) return;
+
if(hasOpen(NULL)) {
MessageBox::warning(this, tr("Close first."),
tr("Close open macros first."));
@@ -176,6 +178,8 @@ void MainWindow::closeCommit()
void MainWindow::closeNoCommit()
{
+ if(closing) return;
+
if(hasOpen(NULL)) {
MessageBox::warning(this, tr("Close first."),
tr("Close open macros first."));
@@ -188,6 +192,8 @@ void MainWindow::closeNoCommit()
void MainWindow::closeDiscard()
{
+ if(closing) return;
+
if(hasOpen(NULL)) {
MessageBox::warning(this, tr("Close first."),
tr("Close open macros first."));