generic: adjust to KStandardDirs changes

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2015-10-17 18:57:24 +03:00
parent 506e331ead
commit 9ec8609680
4 changed files with 4 additions and 4 deletions

View 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 );

View 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;

View 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();

View 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";