~ImageView fix

This commit is contained in:
2023-12-24 22:46:17 +03:00
parent 504abae440
commit e2a91a4fbd

View File

@@ -30,9 +30,7 @@ ImageView::ImageView(QWidget * parent): QGraphicsView(parent), item(new QGraphic
ImageView::~ImageView() {
auto os = scene();
setScene(nullptr);
delete os;
scene()->deleteLater();
}