summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
Diffstat (limited to 'framework')
-rw-r--r--framework/source/services/autorecovery.cxx7
1 files changed, 2 insertions, 5 deletions
diff --git a/framework/source/services/autorecovery.cxx b/framework/source/services/autorecovery.cxx
index 30894359e38b..d59a36b5bb09 100644
--- a/framework/source/services/autorecovery.cxx
+++ b/framework/source/services/autorecovery.cxx
@@ -77,6 +77,7 @@
#include <o3tl/typed_flags_set.hxx>
#include <o3tl/string_view.hxx>
#include <unotools/mediadescriptor.hxx>
+#include <unotools/mvc.hxx>
#include <comphelper/multiinterfacecontainer3.hxx>
#include <comphelper/namedvaluecollection.hxx>
#include <comphelper/sequence.hxx>
@@ -3422,11 +3423,7 @@ void AutoRecovery::implts_openOneDoc(const OUString& sURL ,
}
// introduce model/view/controller to each other
- xController->attachModel( xModel );
- xModel->connectController( xController );
- xTargetFrame->setComponent( xController->getComponentWindow(), xController );
- xController->attachFrame( xTargetFrame );
- xModel->setCurrentController( xController );
+ utl::ConnectModelViewController(xModel, xTargetFrame, xController);
}
rInfo.Document = xModel.get();