From d26972aaac0fa0ec67b9958a79eff90e09d3df30 Mon Sep 17 00:00:00 2001 From: trialuser02 Date: Mon, 13 May 2013 14:27:34 +0000 Subject: added cache for general plugins git-svn-id: http://svn.code.sf.net/p/qmmp-dev/code/trunk/qmmp@3464 90c681e8-e032-0410-971d-27865f9a5e38 --- src/qmmpui/uihelper.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/qmmpui/uihelper.cpp') diff --git a/src/qmmpui/uihelper.cpp b/src/qmmpui/uihelper.cpp index e2984619f..48d827618 100644 --- a/src/qmmpui/uihelper.cpp +++ b/src/qmmpui/uihelper.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2008-2012 by Ilya Kotov * + * Copyright (C) 2008-2013 by Ilya Kotov * * forkotov02@hotmail.ru * * * * This program is free software; you can redistribute it and/or modify * @@ -57,9 +57,9 @@ UiHelper::~UiHelper() bool UiHelper::visibilityControl() { GeneralFactory* factory; - foreach(factory, *General::factories()) + foreach(factory, General::enabledFactories()) { - if (General::isEnabled(factory) && factory->properties().visibilityControl) + if (factory->properties().visibilityControl) return true; } return false; -- cgit v1.2.3-13-gbd6f