Commit 23de6499 authored by Ralf Habacker's avatar Ralf Habacker

Fix crash adding new uml foreign key constraint.

BUG:342075
FIXED-IN:2.15.1 (KDE 14.12.1)
parent 6c2ca6a9
......@@ -36,7 +36,7 @@ DialogBase::DialogBase(QWidget *parent, bool withDefaultButton)
: QWidget(parent),
m_pageDialog(0),
m_pageWidget(0),
m_useDialog(strcmp(parent->metaObject()->className(),"PropertiesWindow") != 0),
m_useDialog(!parent || strcmp(parent->metaObject()->className(),"PropertiesWindow") != 0),
m_isModified(false)
{
if (m_useDialog) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment