summaryrefslogtreecommitdiff
path: root/client/macrowindow.cc
diff options
context:
space:
mode:
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 +