QStandardPaths::standardLocations()/WinRT: Return empty lists.

Previously, lists containing one empty string were returned for the
unimplemented functions.

Change-Id: Ia64b53325420e32076f2bacf22c48885d7121df0
Reviewed-by: Maurice Kalinowski <maurice.kalinowski@theqtcompany.com>
bb10
Friedemann Kleint 2015-12-03 09:28:23 +01:00
parent 14e138652d
commit afaa7351c0
1 changed files with 2 additions and 1 deletions

View File

@ -123,7 +123,8 @@ QString QStandardPaths::writableLocation(StandardLocation type)
QStringList QStandardPaths::standardLocations(StandardLocation type)
{
return QStringList(writableLocation(type));
const QString writable = writableLocation(type);
return writable.isEmpty() ? QStringList() : QStringList(writable);
}
QT_END_NAMESPACE