From 228fa17f3113c884e4239df8321fb94371942273 Mon Sep 17 00:00:00 2001 From: deva Date: Thu, 6 Jan 2011 12:58:45 +0000 Subject: fixed crash on 'save on close reminder' --- client/macrowindow.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'client') diff --git a/client/macrowindow.cc b/client/macrowindow.cc index 08bba6d..1cee8fe 100644 --- a/client/macrowindow.cc +++ b/client/macrowindow.cc @@ -232,7 +232,7 @@ void MacroWindow::expandWrapper() // Set values here, to be sure that the widgets are visible and thereby // validate correctly. - mainwidget->setValues(); + if(mainwidget) mainwidget->setValues(); // Set keyboard focus on the first focusable widget in the macro. QVector< Widget* > widgets; @@ -262,7 +262,7 @@ void MacroWindow::collapseWrapper() MessageBox::Cancel)) { case MessageBox::Save: if(doCommit()) { - setCollapsed(true); + setCollapsed(true); } else { MessageBox::critical(NULL, "Fejl", "Makroen " + macrotitle + -- cgit v1.2.3