[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdebase/runtime/nepomuk
From: Sebastian Trueg <sebastian () trueg ! de>
Date: 2008-01-21 10:36:10
Message-ID: 1200911770.548374.20527.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 764272 by trueg:
Wait for Strigi to startup before starting indexing.
M +13 -2 strigicontroller.cpp
M +1 -0 strigicontroller.h
--- trunk/KDE/kdebase/runtime/nepomuk/strigicontroller.cpp #764271:764272
@@ -126,8 +126,10 @@
kDebug(300002) << "Strigi started successfully.";
- StrigiClient strigiClient;
- strigiClient.startIndexing();
+ // Strigi might refuse to start properly for some reason (invalid \
config, lock file invalid, whatever.) + // In that case the dbus client \
would hang. Thus, we wait for 5 seconds before starting the indexing + // \
(Which is ugly anyway since Strigi should do that automatically) + \
QTimer::singleShot( 5000, this, SLOT( slotStartStrigiIndexing() ) );
return true;
}
@@ -227,4 +229,13 @@
#endif /* _WIN32 */
}
+
+void Nepomuk::StrigiController::slotStartStrigiIndexing()
+{
+ if ( isRunning() ) {
+ StrigiClient strigiClient;
+ strigiClient.startIndexing();
+ }
+}
+
#include "strigicontroller.moc"
--- trunk/KDE/kdebase/runtime/nepomuk/strigicontroller.h #764271:764272
@@ -49,6 +49,7 @@
private Q_SLOTS:
void slotProcessFinished( int exitCode, QProcess::ExitStatus exitStatus );
void slotRunning5Minutes();
+ void slotStartStrigiIndexing();
private:
KProcess* m_strigiProcess;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic