OSDN Git Service

generic: adjust to KStandardDirs changes
authorIvailo Monev <xakepa10@gmail.com>
Sat, 17 Oct 2015 15:57:24 +0000 (18:57 +0300)
committerIvailo Monev <xakepa10@gmail.com>
Sat, 17 Oct 2015 15:57:24 +0000 (18:57 +0300)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
kcontrol/autostart/autostart.cpp
kioslave/cgi/cgi.cpp
kioslave/desktop/kio_desktop.cpp
kstartupconfig/kstartupconfig.cpp

index 97c07b6..a2d6d5b 100644 (file)
@@ -168,7 +168,7 @@ void Autostart::load()
     widget->listCMD->expandItem( m_scriptItem );
 
     foreach (const QString& path, m_paths) {
-        if (! KStandardDirs::exists(path))
+        if (! KGlobal::dirs()->exists(path))
             KStandardDirs::makeDir(path);
 
         QDir autostartdir( path );
index 6bff1a5..9f4b4db 100644 (file)
@@ -89,7 +89,7 @@ void CgiProtocol::get( const KUrl& url )
     if ( !(*it).endsWith('/') )
         cmd += '/';
     cmd += file;
-    if ( KStandardDirs::exists( cmd ) ) {
+    if ( KGlobal::dirs()->exists( cmd ) ) {
       forwardFile = false;
       stripHeader = true;
       break;
index 43eba01..d729cd4 100644 (file)
@@ -177,7 +177,7 @@ QString DesktopProtocol::desktopFile(KIO::UDSEntry &entry) const
 
     if (entry.isDir()) {
         url.addPath(".directory");
-        if (!KStandardDirs::exists(url.path()))
+        if (!KGlobal::dirs()->exists(url.path()))
             return QString();
 
         return url.path();
index 153d28b..09743eb 100644 (file)
@@ -150,7 +150,7 @@ int main( int argc, char **argv )
              ++it )
             {
             QString cfg = *it + "share/config/" + file;
-            if( KStandardDirs::exists( cfg ))
+            if( KGlobal::dirs()->exists( cfg ))
                 startupconfigfiles << cfg << "\n";
             else
                 startupconfigfiles << "!" << cfg << "\n";