VCS: Speed up

Do not listen on ICore::contextChanged to update actions
(became slow after additional contexts).
git: Make code to find top level faster, avoid
constructing file info lists.
Acked-by: con
This commit is contained in:
Friedemann Kleint
2010-04-23 16:21:02 +02:00
parent fbbb6cf64b
commit 5923733889
3 changed files with 1 additions and 18 deletions

View File

@@ -173,8 +173,6 @@ StateListener::StateListener(QObject *parent) :
QObject(parent)
{
Core::ICore *core = Core::ICore::instance();
connect(core, SIGNAL(contextChanged(Core::IContext*,QList<int>)),
this, SLOT(slotStateChanged()));
connect(core->fileManager(), SIGNAL(currentFileChanged(QString)),
this, SLOT(slotStateChanged()));