Skip to content

Commit 7a81841

Browse files
committed
Fix parent
1 parent 4646b55 commit 7a81841

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Interface/Modules/Visualization/InterfaceWithOsprayDialog.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,11 +82,11 @@ void InterfaceWithOsprayDialog::showImage()
8282
myLabel->setPixmap(QPixmap::fromImage(image));
8383
myLabel->resize(myLabel->pixmap()->size());
8484

85-
auto d = new QDialog;
85+
auto d = new QDialog(this);
8686
d->setWindowTitle("Ospray Scene Image");
8787
auto layout = new QHBoxLayout;
8888
layout->addWidget(myLabel);
8989
d->setLayout(layout);
9090
d->show();
9191
}
92-
}
92+
}

0 commit comments

Comments
 (0)