summaryrefslogtreecommitdiffstats
path: root/tdeio
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2020-04-04 00:43:23 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2020-04-04 00:43:23 +0900
commit9cd27dbaa3e866ab5befdbcaadddf13b34e7b0bf (patch)
treef382b13f2852fe82e04528da551791de19083c02 /tdeio
parent55b56c2e5010ffde0673d4a988c451be390fd817 (diff)
downloadtdelibs-9cd27dbaa3e866ab5befdbcaadddf13b34e7b0bf.tar.gz
tdelibs-9cd27dbaa3e866ab5befdbcaadddf13b34e7b0bf.zip
Fixed tde branding of services in tdebuildsycoca. This was creating old
kde-* entries in profilerc when updating file type preferences. This relates to bug 3083. Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tdeio')
-rw-r--r--tdeio/tdeio/kservice.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/tdeio/tdeio/kservice.cpp b/tdeio/tdeio/kservice.cpp
index c097146a3..05cf554c0 100644
--- a/tdeio/tdeio/kservice.cpp
+++ b/tdeio/tdeio/kservice.cpp
@@ -680,8 +680,8 @@ KService::Ptr KService::serviceByDesktopPath( const TQString& _name )
KService::Ptr KService::serviceByDesktopName( const TQString& _name )
{
KService * s = KServiceFactory::self()->findServiceByDesktopName( _name.lower() );
- if (!s && !_name.startsWith("kde-"))
- s = KServiceFactory::self()->findServiceByDesktopName( "kde-"+_name.lower() );
+ if (!s && !_name.startsWith("tde-"))
+ s = KServiceFactory::self()->findServiceByDesktopName( "tde-"+_name.lower() );
return KService::Ptr( s );
}
@@ -866,7 +866,7 @@ TQString KService::newServicePath(bool showInMenu, const TQString &suggestedName
{
TQString base = suggestedName;
if (!showInMenu)
- base.prepend("kde-");
+ base.prepend("tde-");
TQString result;
for(int i = 1; true; i++)
@@ -891,7 +891,7 @@ TQString KService::newServicePath(bool showInMenu, const TQString &suggestedName
}
else
{
- TQString file = result.mid(4); // Strip "kde-"
+ TQString file = result.mid(4); // Strip "tde-"
if (!locate("apps", ".hidden/"+file).isEmpty())
continue;
}
@@ -907,7 +907,7 @@ TQString KService::newServicePath(bool showInMenu, const TQString &suggestedName
}
else
{
- TQString file = result.mid(4); // Strip "kde-"
+ TQString file = result.mid(4); // Strip "tde-"
return ::locateLocal("apps", ".hidden/"+file);
}
}