Commit 69ea5270 authored by Christoffer Ackelman's avatar Christoffer Ackelman Committed by Esteban Blanc

QT: Fixed the title in the create project wizard being corrupt for a few...

QT: Fixed the title in the create project wizard being corrupt for a few milliseconds when the dialog window is closed.
parent c7e1a982
......@@ -43,6 +43,7 @@
#include "wb_wge_qt.h"
#include <QApplication>
#include <QCloseEvent>
#include <QMenuBar>
#include <QMessageBox>
#include <QShortcut>
......@@ -146,9 +147,14 @@ void WGeQtWidget::action_resize(QResizeEvent* event)
WGeQt::~WGeQt()
{
if (close_cb) {
(close_cb)(this);
}
if (nav_widget) {
nav_widget->close();
}
delete graph;
delete toplevel;
}
void WGeQt::set_size(int width, int height)
......@@ -175,7 +181,7 @@ void WGeQtWidget::closeEvent(QCloseEvent* event)
} else {
delete ge;
}
QWidget::closeEvent(event);
event->ignore();
}
WGeQt::WGeQt(void* wge_parent_ctx, char* wge_name, char* wge_filename,
......@@ -200,7 +206,6 @@ WGeQt::WGeQt(void* wge_parent_ctx, char* wge_name, char* wge_filename,
toplevel = new WGeQtWidget(this);
toplevel->setMinimumSize(window_width, window_height);
toplevel->setWindowTitle(fl(title));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
CoWowQt::SetWindowIcon(toplevel);
......
Markdown is supported
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