Skip to content

Commit 81d407f

Browse files
author
g_j_m
committed
Fix those pesky 'cannot find providerKey() or description()' messages
when starting qgis git-svn-id: http://svn.osgeo.org/qgis/trunk@4951 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 77e1550 commit 81d407f

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/core/qgsproviderregistry.cpp

+10-10
Original file line numberDiff line numberDiff line change
@@ -156,18 +156,17 @@ QgsProviderRegistry::QgsProviderRegistry(QString pluginPath)
156156
QgsDebug( QString("No vector file filters for " + pKey()).ascii() );
157157
}
158158
}
159-
else
160-
{
161-
QgsDebug( "Unable to invoke fileVectorFilters()" );
162-
}
163159
}
164160
else
165161
{
166-
cout << myLib->library().data()
167-
<< " Unable to find one of the required provider functions:\n\tproviderKey() or description()"
168-
<< endl;
162+
QgsDebug( "Unable to invoke fileVectorFilters()" );
169163
}
170164
}
165+
else
166+
{
167+
cout << "Unable to find one of the required provider functions (providerKey() or description()) in "
168+
<< myLib->library().toLocal8Bit().data() << endl;
169+
}
171170
}
172171
else
173172
{
@@ -176,9 +175,10 @@ QgsProviderRegistry::QgsProviderRegistry(QString pluginPath)
176175
}
177176
else
178177
{
179-
cout << myLib->library().data()
180-
<< " Unable to find one of the required provider functions:\n\tproviderKey() or description()"
181-
<< endl;
178+
#ifdef QGISDEBUG
179+
cout << myLib->library().toLocal8Bit().data()
180+
<< " is not a provider" << std::endl;
181+
#endif
182182
}
183183
}
184184

0 commit comments

Comments
 (0)