]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/dolphinpart.cpp
Hide the "Sort by Rating" and "Sort by Tags" menu entries for KDE 4.0, as currently...
[dolphin.git] / src / dolphinpart.cpp
index a2fb686aba4085962b9fe871d8b6d086a9811808..e25c2882f1faeb1c5220ead728a544bf773255b0 100644 (file)
@@ -42,9 +42,6 @@ DolphinPart::DolphinPart(QWidget* parentWidget, QObject* parent, const QStringLi
     : KParts::ReadOnlyPart(parent)
 {
     Q_UNUSED(args)
-
-    KGlobal::locale()->insertCatalog("dolphin");
-
     setComponentData( DolphinPartFactory::componentData() );
     m_extension = new DolphinPartBrowserExtension(this);
 
@@ -187,7 +184,7 @@ void DolphinPart::updateViewActions()
 
 KAboutData* DolphinPart::createAboutData()
 {
-    return new KAboutData("dolphinpart", 0, ki18nc("@title", "Dolphin Part"), "0.1");
+    return new KAboutData("dolphinpart", "dolphin", ki18nc("@title", "Dolphin Part"), "0.1");
 }
 
 bool DolphinPart::openUrl(const KUrl& url)
@@ -200,10 +197,10 @@ bool DolphinPart::openUrl(const KUrl& url)
     const QString prettyUrl = url.pathOrUrl();
     emit setWindowCaption(prettyUrl);
     emit m_extension->setLocationBarUrl(prettyUrl);
+    emit started(0); // get the wheel to spin
     m_view->setUrl(url);
     if (reload)
         m_view->reload();
-    emit started(0); // get the wheel to spin
     return true;
 }