summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
Diffstat (limited to 'client')
-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."));