diff options
-rw-r--r-- | dbaccess/source/ui/app/AppController.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/dbaccess/source/ui/app/AppController.cxx b/dbaccess/source/ui/app/AppController.cxx index b97a02e2a1ac..a46169e9c926 100644 --- a/dbaccess/source/ui/app/AppController.cxx +++ b/dbaccess/source/ui/app/AppController.cxx @@ -408,6 +408,12 @@ void SAL_CALL OApplicationController::disposing() aFilter, getStrippedDatabaseName(), OUString() ); + + // add to recent document list + if ( aURL.GetProtocol() == INET_PROT_FILE ) + Application::AddToRecentDocumentList( aURL.GetURLNoPass( INetURLObject::NO_DECODE ), + (pFilter) ? pFilter->GetMimeType() : OUString(), + (pFilter) ? pFilter->GetServiceName() : OUString() ); } } |