Don't append just a dot in wxGTK wxFileDialog if no default extension.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 29 Jun 2013 12:51:01 +0000 (12:51 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 29 Jun 2013 12:51:01 +0000 (12:51 +0000)
commit42ed9de2921e8c8d2c7f3ab04ce1713b4f975e6f
tree41348adea4be99b376cef446cffe2ffc105d6c64
parent88343ddae94c7925a2ae884b76f6ac3246c23c48
Don't append just a dot in wxGTK wxFileDialog if no default extension.

We always appended the default extension (for the currently selected pattern)
to the file name but this was the wrong thing to do if there was no extension
at all as this resulted in appending just a dot to the filename. So only do it
if there is an extension to append.

Closes #15285.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74307 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/gtk/filedlg.cpp