summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2018-12-16 14:21:37 +0100
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2018-12-18 22:42:40 +0100
commite455cbd491e038bc8b84b4b717b1fcf02ca162b0 (patch)
tree430c036fad8ad5f4508b5b31ff1156cac9b5aa95 /cui
parent6991784d9759ebfe0686f96a242d091799f81012 (diff)
tdf#122136: select first element if there's at least one
See bt from https://bugs.documentfoundation.org/attachment.cgi?id=147594 Change-Id: Ibf031b8024aa4952e2d3263a445cafdb3c031390 Reviewed-on: https://gerrit.libreoffice.org/65221 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/options/optjava.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/cui/source/options/optjava.cxx b/cui/source/options/optjava.cxx
index 5f44c6d424f9..69b1b82c092d 100644
--- a/cui/source/options/optjava.cxx
+++ b/cui/source/options/optjava.cxx
@@ -1014,9 +1014,9 @@ void SvxJavaClassPathDlg::SetClassPath( const OUString& _rPath )
m_xPathList->append("", sPath, SvFileInformationManager::GetImageId(aURL));
}
while (nIdx>=0);
+ // select first entry
+ m_xPathList->select(0);
}
- // select first entry
- m_xPathList->select(0);
SelectHdl_Impl(*m_xPathList);
}