summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2017-09-27 12:07:32 +0200
committerSzymon Kłos <szymon.klos@collabora.com>2017-09-27 13:23:09 +0200
commit176b161ac654c50eb5c128ebdb681fcf20509b35 (patch)
treebf07e7a3a1dbbeaf412cc9efd0adbb17a163ac37
parent404630c6052919c1a0b5dab405084c2a39fc2f5c (diff)
tdf#112634 Don't show broken connections in database tree
Don't show connections if are broken. Done in the UI because internally this database is needed for export purposes. Change-Id: Ifa5d10a74874e38676b946a5e3be1e3b336e6410 Reviewed-on: https://gerrit.libreoffice.org/42849 Reviewed-by: Szymon Kłos <szymon.klos@collabora.com> Tested-by: Szymon Kłos <szymon.klos@collabora.com>
-rw-r--r--sw/source/uibase/dbui/dbtree.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sw/source/uibase/dbui/dbtree.cxx b/sw/source/uibase/dbui/dbtree.cxx
index c0a3176855d7..221527a3db90 100644
--- a/sw/source/uibase/dbui/dbtree.cxx
+++ b/sw/source/uibase/dbui/dbtree.cxx
@@ -361,6 +361,11 @@ void SwDBTreeList::RequestingChildren(SvTreeListEntry* pParent)
}
}
}
+ else
+ {
+ // Defunct connection entry
+ RemoveEntry(pParent);
+ }
}
catch (const Exception&)
{