- if (blk != NULL)
- {
- QC_MDIWindow * w = appWindow->slotFileNew(blk);
- // the parent needs a pointer to the block window and
- // vice versa
- parent->addChildWindow(w);
- w->getGraphicView()->zoomAuto(false);
- }
+ if (block)
+ {
+ MDIWindow * w = appWindow->slotFileNew(block);
+ // the parent needs a pointer to the block window and vice versa
+ parent->addChildWindow(w);
+ w->getGraphicView()->zoomAuto(false);