Commit 194cc9d8 authored by Renne Thomas's avatar Renne Thomas
Browse files

correct duplication page bug

parent d4954213
......@@ -27,7 +27,8 @@
#include "gui/widgets/engines_view/xtandemparamwidget.h"
#include "gui/widgets/engines_view/noengineparamwidget.h"
#include "../../../mainwindow.h"
#include <QSettings>
//#include <QSettings>
#include <QCloseEvent>
EngineDetailWindow::EngineDetailWindow(ProjectWindow *parent)
......@@ -84,3 +85,14 @@ EngineDetailWindow::updateDisplay()
ui->verticalLayout->insertWidget(1, no_engine_view_widget);
}
}
void
EngineDetailWindow::closeEvent(QCloseEvent *event)
{
QWidget *temp_widget = ui->verticalLayout->itemAt(1)->widget();
ui->verticalLayout->removeWidget(temp_widget);
delete temp_widget;
event->accept();
}
......@@ -53,6 +53,8 @@ class EngineDetailWindow : public QMainWindow
void updateDisplay();
private:
void closeEvent(QCloseEvent *event);
Ui::EngineDetailView *ui;
ProjectWindow *m_project_window;
IdentificationDataSourceSp *m_identificationEngine = nullptr;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment