Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
0b663e96
Commit
0b663e96
authored
Jul 08, 2022
by
Robin Eschbach
Browse files
[FIX
#731
] disable glwidget updates while loading
parent
89539b94
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/qtgui/WMainWindow.cpp
src/qtgui/WMainWindow.cpp
+2
-0
No files found.
src/qtgui/WMainWindow.cpp
View file @
0b663e96
...
...
@@ -800,6 +800,7 @@ void WMainWindow::asyncProjectLoad( std::string filename )
boost
::
placeholders
::
_2
,
boost
::
placeholders
::
_3
)
)
);
setCurrentProject
(
filename
);
m_mainGLWidget
->
setUpdatesEnabled
(
false
);
proj
->
load
();
}
...
...
@@ -1074,6 +1075,7 @@ bool WMainWindow::event( QEvent* event )
if
(
event
->
type
()
==
WQT_LOADFINISHED
)
{
m_mainGLWidget
->
setUpdatesEnabled
(
true
);
// convert event
WLoadFinishedEvent
*
e1
=
dynamic_cast
<
WLoadFinishedEvent
*
>
(
event
);
if
(
e1
)
...
...
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