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
095f215b
Commit
095f215b
authored
Apr 11, 2011
by
Sebastian Eichelbaum
Browse files
[FIX] - custom docks get shown again after creation.
parent
5182c7c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
src/gui/qt4/WMainWindow.cpp
src/gui/qt4/WMainWindow.cpp
+3
-4
No files found.
src/gui/qt4/WMainWindow.cpp
View file @
095f215b
...
...
@@ -915,12 +915,11 @@ void WMainWindow::customEvent( QEvent* event )
{
// create new custom dock widget
widget
=
boost
::
shared_ptr
<
WQtCustomDockWidget
>
(
new
WQtCustomDockWidget
(
title
,
this
,
ocdwEvent
->
getProjectionMode
()
)
);
m_glDock
->
addDockWidget
(
Qt
::
BottomDockWidgetArea
,
widget
.
get
()
);
new
WQtCustomDockWidget
(
title
,
m_glDock
,
ocdwEvent
->
getProjectionMode
()
)
);
//
m_glDock->addDockWidget( Qt::BottomDockWidgetArea, widget.get() );
// restore state and geometry
// TODO(ebaum): this is critical. The dock widgets get closed before saveState. This means the restored docks are closed too.
// m_glDock->restoreDockWidget( widget.get() );
m_glDock
->
restoreDockWidget
(
widget
.
get
()
);
// store it in CustomDockWidget list
m_customDockWidgets
.
insert
(
make_pair
(
title
,
widget
)
);
...
...
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