From 643ca7872b450ea4efacab6188849e5aac2ba161 Mon Sep 17 00:00:00 2001 From: Steve Block Date: Tue, 15 Dec 2009 10:12:09 +0000 Subject: Merge webkit.org at r51976 : Initial merge by git. Change-Id: Ib0e7e2f0fb4bee5a186610272edf3186f0986b43 --- WebCore/platform/graphics/qt/IconQt.cpp | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'WebCore/platform/graphics/qt/IconQt.cpp') diff --git a/WebCore/platform/graphics/qt/IconQt.cpp b/WebCore/platform/graphics/qt/IconQt.cpp index 98f4606..a9870fc 100644 --- a/WebCore/platform/graphics/qt/IconQt.cpp +++ b/WebCore/platform/graphics/qt/IconQt.cpp @@ -40,15 +40,17 @@ Icon::~Icon() { } -PassRefPtr Icon::createIconForFile(const String& filename) +PassRefPtr Icon::createIconForFiles(const Vector& filenames) { - RefPtr i = adoptRef(new Icon); - i->m_icon = QIcon(filename); - return i.release(); -} + if (filenames.isEmpty()) + return 0; + + if (filenames.size() == 1) { + RefPtr i = adoptRef(new Icon); + i->m_icon = QIcon(filenames[0]); + return i.release(); + } -PassRefPtr Icon::createIconForFiles(const Vector&) -{ //FIXME: Implement this return 0; } -- cgit v1.1