diff --git a/src/widgets/workspace.cpp b/src/widgets/workspace.cpp index af86c2f59..f58338b63 100644 --- a/src/widgets/workspace.cpp +++ b/src/widgets/workspace.cpp @@ -143,7 +143,7 @@ WorkspacePart* Workspace::destroyPart(WorkspacePart* part) delete part; ASSERT(splitter->getChildren().size() == 1); - Widget* otherWidget = splitter->getChildren().front(); + Widget* otherWidget = splitter->getFirstChild(); WorkspacePart* otherPart = dynamic_cast(otherWidget); if (otherPart == NULL) { Widget* widget = otherWidget; @@ -152,7 +152,7 @@ WorkspacePart* Workspace::destroyPart(WorkspacePart* part) if (otherPart != NULL) break; - widget = widget->getChildren().front(); + widget = widget->getFirstChild(); } } ASSERT(otherPart != NULL);