Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
24c20f39
Commit
24c20f39
authored
Apr 08, 2019
by
Christoffer Ackelman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
QT: Fixed activate_exit in the GE editor.
parent
97f471f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
13 deletions
+4
-13
xtt/lib/ge/qt/ge_qt.cqt
xtt/lib/ge/qt/ge_qt.cqt
+4
-13
No files found.
xtt/lib/ge/qt/ge_qt.cqt
View file @
24c20f39
...
...
@@ -63,6 +63,7 @@
#include "wb_wnav_selformat.h"
#include <QApplication>
#include <QCloseEvent>
#include <QFontDatabase>
#include <QHBoxLayout>
#include <QInputDialog>
...
...
@@ -1237,7 +1238,7 @@ void GeQt::update()
void GeQtWidget::closeEvent(QCloseEvent* event)
{
ge->Ge::activate_exit();
QWidget::closeEvent(event
);
event->ignore(
);
}
void GeQtWidget::focusInEvent(QFocusEvent* event)
...
...
@@ -1260,15 +1261,6 @@ void GeQtWidget::focusInEvent(QFocusEvent* event)
GeQt::~GeQt()
{
if (graph->is_modified()) {
open_yesnodia("Do you wan't to save changes", "Save", Ge::exit_save_cb,
Ge::exit_nosave_cb);
}
if (open_dialog) {
wow->DeleteList(open_dialog);
}
if (subgraphs_widget) {
subgraphs_widget->close();
}
...
...
@@ -1288,7 +1280,7 @@ GeQt::~GeQt()
delete objectnav;
}
toplevel->close()
;
delete toplevel
;
if (exit_when_close) {
exit(0);
...
...
@@ -1325,7 +1317,6 @@ GeQt::GeQt(void* x_parent_ctx, ldh_tSesContext x_ldhses, int x_exit_when_close,
toplevel->setMinimumSize(window_width, window_height);
toplevel->setWindowTitle(fl(title));
toplevel->setAttribute(Qt::WA_DeleteOnClose);
CoWowQt::SetWindowIcon(toplevel);
...
...
@@ -2023,4 +2014,4 @@ GeQt::GeQt(void* x_parent_ctx, ldh_tSesContext x_ldhses, int x_exit_when_close,
ge_get_systemname(systemname);
graph->set_systemname(systemname);
}
\ No newline at end of file
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment