diff options
Diffstat (limited to 'WebCore/platform/FileChooser.cpp')
-rw-r--r-- | WebCore/platform/FileChooser.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/WebCore/platform/FileChooser.cpp b/WebCore/platform/FileChooser.cpp index 1aeefb9..739181d 100644 --- a/WebCore/platform/FileChooser.cpp +++ b/WebCore/platform/FileChooser.cpp @@ -72,6 +72,8 @@ void FileChooser::chooseFile(const String& filename) void FileChooser::chooseFiles(const Vector<String>& filenames) { + if (m_filenames == filenames) + return; m_filenames = filenames; m_icon = chooseIcon(filenames); if (m_client) @@ -85,6 +87,8 @@ PassRefPtr<Icon> FileChooser::chooseIcon(const String& filename) PassRefPtr<Icon> FileChooser::chooseIcon(Vector<String> filenames) { + if (filenames.isEmpty()) + return 0; if (filenames.size() == 1) return Icon::createIconForFile(filenames[0]); return Icon::createIconForFiles(filenames); |