mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 02:42:48 +00:00
kdeui: use QDir::exists() to check for icon directory existence
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
052fcecc13
commit
b24622f35d
1 changed files with 1 additions and 1 deletions
|
@ -144,7 +144,7 @@ KIconTheme::KIconTheme(const QString& name, const QString& appName)
|
|||
icnlibs = KGlobal::dirs()->resourceDirs("data");
|
||||
for (it=icnlibs.constBegin(); it!=icnlibs.constEnd(); ++it) {
|
||||
const QString cDir = *it + appName + "/icons/" + name;
|
||||
if (QFile::exists( cDir )) {
|
||||
if (QDir( cDir ).exists()) {
|
||||
themeDirs += cDir + '/';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue