summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2011-08-29 20:10:45 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2011-08-29 20:11:35 +0200
commita6adae16d96d78cb5b54de7bcc14d2b3ce48ae77 (patch)
treec017c5886fac648dfadcfaa417b0d5da0f586f9e /basctl
parent26e9dfea9abee8a53eefcc42a648c06fcff19d49 (diff)
don't crash when loading basic IDE
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/iderdll.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/basctl/source/basicide/iderdll.cxx b/basctl/source/basicide/iderdll.cxx
index 45761d1bfa55..ee26e82e479b 100644
--- a/basctl/source/basicide/iderdll.cxx
+++ b/basctl/source/basicide/iderdll.cxx
@@ -108,7 +108,7 @@ namespace BasicIDEGlobals
void ShellCreated(BasicIDEShell* pShell)
{
BasicIDEDLL *pIDEGlobals = theBasicIDEDLLInstance::get().get();
- if (pIDEGlobals && pIDEGlobals->GetShell() == pShell)
+ if (pIDEGlobals && pIDEGlobals->GetShell() == NULL)
pIDEGlobals->SetShell(pShell);
}