From 35472208a495541f2e5be866e6f55242d34506ba Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 8 Feb 2011 14:07:51 +0000 Subject: Remove double message on closing and saving of changed macro. --- client/macrowindow.cc | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'client') diff --git a/client/macrowindow.cc b/client/macrowindow.cc index 37dc6e3..481ee0c 100644 --- a/client/macrowindow.cc +++ b/client/macrowindow.cc @@ -267,14 +267,7 @@ void MacroWindow::collapseWrapper() MessageBox::Save | MessageBox::Close | MessageBox::Cancel)) { case MessageBox::Save: - if(doCommit()) { - setCollapsed(true); - } else { - MessageBox::critical(NULL, "Fejl", - "Makroen " + macrotitle + - " er ikke udfyldt korrekt, prøv igen.\n", - MessageBox::Ok); - } + doCommit(); break; case MessageBox::Close: collapse(); -- cgit v1.2.3