Skip to content

Commit

Permalink
sc ide: docklets - fix geometry after undocking
Browse files Browse the repository at this point in the history
  • Loading branch information
jleben committed Feb 15, 2013
1 parent dcc15d1 commit 6b33d66
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion editors/sc-ide/widgets/util/docklet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,14 @@ void Docklet::toggleFloating()

if (undock) {
qDebug() << "dock: set geom (toggleFloating):" << undockedGeom << this;
mDockWidget->setGeometry( undockedGeom );
if (undockedGeom.isNull()) {
// Looks like resize or move event does not always occur,
// so store the undocked geometry here.
mUndockedGeom = mDockWidget->geometry();
}
else {
mDockWidget->setGeometry( undockedGeom );
}
}

updateDockAction();
Expand Down

0 comments on commit 6b33d66

Please sign in to comment.