From 05732251c115b3538879ca523c461572115c6526 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Thu, 23 Aug 2012 13:31:54 +0200 Subject: Block click on buttons while waiting for close. --- client/mainwindow.cc | 6 ++++++ 1 file changed, 6 insertions(+) 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.")); -- cgit v1.2.3