]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinmainwindow.cpp
* Starts to add Nepomuk supports to dolphin (currently, only annotations are supported)
[dolphin.git] / src / dolphinmainwindow.cpp
index 2cf524bbd7f124c9558474387c1361ac3b95006b..adc7d17ceebc7c4f09ce3ee94db8e49f072b4c9e 100644 (file)
@@ -36,6 +36,7 @@
 #include "dolphin_generalsettings.h"\r
 #include "viewpropertiesdialog.h"\r
 #include "viewproperties.h"\r
+#include "metadataloader.h"\r
 #include "mainwindowadaptor.h"\r
 \r
 #include <kaction.h>\r
@@ -952,6 +953,9 @@ void DolphinMainWindow::init()
         // assure a proper default size if Dolphin runs the first time\r
         resize(640, 480);\r
     }\r
+    \r
+    if (!DolphinApplication::app()->metadataLoader()->storageUp())\r
+        activeView()->statusBar()->setMessage(i18n("Failed to contact Nepomuk service, annotation and tagging are disabled."), DolphinStatusBar::Error);\r
 }\r
 \r
 void DolphinMainWindow::loadSettings()\r