From 32817a02b4fae7010e7ef1212916168845a58831 Mon Sep 17 00:00:00 2001 From: sandman Date: Mon, 21 Oct 2002 12:39:51 +0000 Subject: Get rid of the QDir::readDirEntries: Cannot read the directory: /opt/QtPalmtop/plugins/fontfactories message if no fontfactories are installed -- this seems to confuse users --- (limited to 'library/fontdatabase.cpp') diff --git a/library/fontdatabase.cpp b/library/fontdatabase.cpp index 147134c..899d5cf 100644 --- a/library/fontdatabase.cpp +++ b/library/fontdatabase.cpp @@ -161,6 +161,10 @@ void FontDatabase::loadRenderers() QString path = QPEApplication::qpeDir() + "/plugins/fontfactories"; QDir dir( path, "lib*.so" ); + + if ( !dir.exists()) + return; + QStringList list = dir.entryList(); QStringList::Iterator it; for ( it = list.begin(); it != list.end(); ++it ) { -- cgit v0.9.0.2