OSDN Git Service

Generic highlighter: Don't search for pre-installed definitions on mac.
authorLeandro Melo <leandro.melo@nokia.com>
Mon, 1 Nov 2010 08:46:55 +0000 (09:46 +0100)
committerLeandro Melo <leandro.melo@nokia.com>
Mon, 1 Nov 2010 08:48:37 +0000 (09:48 +0100)
Reviewed-by: con
src/plugins/texteditor/generichighlighter/highlightersettings.cpp

index 2298df6..f2bf4e3 100644 (file)
@@ -45,7 +45,7 @@ namespace Internal {
 
 QString findDefinitionsLocation()
 {
-#ifdef Q_OS_UNIX
+#if defined(Q_OS_UNIX) && !defined(Q_OS_MAC)
     static const QLatin1String kateSyntax[] = {
         QLatin1String("/share/apps/katepart/syntax"),
         QLatin1String("/share/kde4/apps/katepart/syntax")