Browse Source

Do not use vista file dialog on mingw

Signed-off-by: falkTX <falktx@falktx.com>
tags/2021-05-28
falkTX 5 years ago
parent
commit
f345662c18
Signed by: falkTX <falktx@falktx.com> GPG Key ID: CDBAA37ABC74FBA0
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      modules/juce_gui_basics/native/juce_win32_FileChooser.cpp

+ 4
- 0
modules/juce_gui_basics/native/juce_win32_FileChooser.cpp View File

@@ -172,6 +172,7 @@ private:
void operator() (LPWSTR ptr) const noexcept { CoTaskMemFree (ptr); }
};
#if JUCE_MSVC
bool showDialog (IFileDialog& dialog, bool async) const
{
FILEOPENDIALOGOPTIONS flags = {};
@@ -327,6 +328,7 @@ private:
return result;
}
#endif
Array<URL> openDialogPreVista (bool async)
{
@@ -436,11 +438,13 @@ private:
const Remover remover (*this);
#if JUCE_MSVC
if (SystemStats::getOperatingSystemType() >= SystemStats::WinVista
&& customComponent == nullptr)
{
return openDialogVistaAndUp (async);
}
#endif
return openDialogPreVista (async);
}


Loading…
Cancel
Save