From be6a4360dd74ff5961e04d00c4ece87af8c51823 Mon Sep 17 00:00:00 2001 From: Darrell Anderson Date: Fri, 2 Nov 2012 11:23:28 -0500 Subject: [PATCH] Fix 'format not a string literal' error. --- katapult/plugins/catalogs/documentcatalog/documentcatalog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/katapult/plugins/catalogs/documentcatalog/documentcatalog.cpp b/katapult/plugins/catalogs/documentcatalog/documentcatalog.cpp index bdcc1c6..1ed595e 100644 --- a/katapult/plugins/catalogs/documentcatalog/documentcatalog.cpp +++ b/katapult/plugins/catalogs/documentcatalog/documentcatalog.cpp @@ -173,7 +173,7 @@ void DocumentCatalog::queryChanged() if(files.count() > 0) { newStatus |= S_HasResults; - if(files.count() > 1 || files.at(0)->className() == "Directory") + if(files.count() > 1 || ( strcmp(files.at(0)->className(), "Directory") == 0 ) ) newStatus |= S_Multiple; } else newStatus |= S_NoResults;