mirror of
https://bitbucket.org/smil3y/kde-workspace.git
synced 2025-02-23 10:22:49 +00:00
generic: adjust to KStandardDirs changes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
506e331ead
commit
9ec8609680
4 changed files with 4 additions and 4 deletions
|
@ -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 );
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Add table
Reference in a new issue