summaryrefslogtreecommitdiff
path: root/client/macrowindow.cc
diff options
context:
space:
mode:
authordeva <deva>2011-01-06 12:58:45 +0000
committerdeva <deva>2011-01-06 12:58:45 +0000
commit228fa17f3113c884e4239df8321fb94371942273 (patch)
treeb96bb675689b6c671c0be11c20547d5901a8eb75 /client/macrowindow.cc
parent34eb3d28fa42539772d0e202e005134803ec2aec (diff)
fixed crash on 'save on close reminder'
Diffstat (limited to 'client/macrowindow.cc')
-rw-r--r--client/macrowindow.cc4
1 files changed, 2 insertions, 2 deletions
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 +