| author | Tor Lillqvist <tlillqvist@novell.com> | 2011-06-06 12:46:32 (GMT) |
|---|---|---|
| committer | Tor Lillqvist <tlillqvist@novell.com> | 2011-06-06 12:47:26 (GMT) |
| commit | 6f9702f7c2e2df38f18b8d69bd3ea6e957a2202c (patch) (side-by-side diff) | |
| tree | f6c47c486f31c89354357e3aaeb815818772bfdf | |
| parent | f38eedda3e013612088802b3815368238bfc2341 (diff) | |
| download | libs-core-6f9702f7c2e2df38f18b8d69bd3ea6e957a2202c.zip libs-core-6f9702f7c2e2df38f18b8d69bd3ea6e957a2202c.tar.gz | |
Sanity test, seems to fix fdo#37930
| -rw-r--r-- | fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx b/fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx index 8016b74..5e03b11 100644 --- a/fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx +++ b/fpicker/source/win32/filepicker/VistaFilePickerImpl.cxx @@ -772,6 +772,9 @@ void VistaFilePickerImpl::impl_sta_setFiltersOnDialog() aLock.clear(); // <- SYNCHRONIZED + if (lFilters.size() == 0) + return; + COMDLG_FILTERSPEC *pFilt = &lFilters[0]; iDialog->SetFileTypes(lFilters.size(), pFilt/*&lFilters[0]*/); iDialog->SetFileTypeIndex(nCurrentFilter + 1); |
