Commit c539f38d authored by Christoffer Ackelman's avatar Christoffer Ackelman

QT: Fixed crash when closing the XttGe widget.

parent 9e660bbc
......@@ -225,6 +225,7 @@ XttGeQt::~XttGeQt()
if (nav_shell) {
nav_shell->close();
}
delete graph;
}
void XttGeQt::pop()
......@@ -285,7 +286,6 @@ XttGeQt::XttGeQt(QWidget* xg_parent_wid, void* xg_parent_ctx,
// Qt
if (!(options & ge_mOptions_Embedded)) {
toplevel = new XttGeQtWidget(this, xg_parent_wid);
toplevel->setToolTip(fl("xtt_ge widget"));
toplevel->setMinimumSize(window_width, window_height);
toplevel->setWindowTitle(QString::fromLatin1(title));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
......
......@@ -55,7 +55,7 @@ public:
QWidget* graph_form;
QLineEdit* value_input;
QWidget* value_dialog;
QMessageBox* confirm_widget;
QMessageBox* confirm_widget = NULL;
CoWowFocusTimerQt focustimer;
XttGeQt(QWidget* parent_wid, void* parent_ctx, const char* name,
......
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