Resolves: tdf#131898 we only want the text from column 0

in the fallback file picker

Change-Id: I60527661f83fde135145249a14b4f3b35840fff8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93347
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
Caolán McNamara 2020-05-03 15:44:55 +01:00
parent c90f39f939
commit 9a87be3055

View file

@ -162,7 +162,12 @@ public:
bool get_iter_first(weld::TreeIter& rIter) const { return mxTreeView->get_iter_first(rIter); }
bool get_selected(weld::TreeIter* pIter) const { return mxTreeView->get_selected(pIter); }
OUString get_selected_text() const { return mxTreeView->get_selected_text(); }
OUString get_selected_text() const
{
// tdf#131898 only care about column 0
int nIndex = mxTreeView->get_selected_index();
return nIndex != -1 ? mxTreeView->get_text(nIndex, 0) : OUString();
}
void unselect_all() { mxTreeView->unselect_all(); }