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:
parent
c90f39f939
commit
9a87be3055
1 changed files with 6 additions and 1 deletions
|
@ -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(); }
|
||||
|
||||
|
|
Loading…
Reference in a new issue