Fixed a crashing bug when there is no TypeEditorView.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6827 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2004-02-29 22:54:27 +00:00
parent 08ebf37bc6
commit c1381da97c

View File

@ -261,7 +261,8 @@ AttributeWindow::MessageReceived(BMessage *message)
bool
AttributeWindow::QuitRequested()
{
fTypeEditorView->CommitChanges();
if (fTypeEditorView != NULL)
fTypeEditorView->CommitChanges();
bool quit = fProbeView->QuitRequested();
if (!quit)