Commit e7fe8de4 authored by Friedemann Kleint's avatar Friedemann Kleint

Qt versions/qmake dialog: Join filter list correctly.

Do not add a trailing blank.

Change-Id: I0b187345415d96508be495860c530bd2f0c292c6
Reviewed-by: default avatarEike Ziller <eike.ziller@nokia.com>
parent e9b8d1f9
......@@ -642,12 +642,15 @@ QtOptionsPageWidget::~QtOptionsPageWidget()
static QString filterForQmakeFileDialog()
{
QString filter = QLatin1String("qmake (");
foreach (const QString &s, Utils::BuildableHelperLibrary::possibleQMakeCommands()) {
const QStringList commands = Utils::BuildableHelperLibrary::possibleQMakeCommands();
for (int i = 0; i < commands.size(); ++i) {
if (i)
filter += QLatin1Char(' ');
#ifdef Q_OS_MAC
// work around QTBUG-7739 that prohibits filters that don't start with *
filter += QLatin1Char('*');
#endif
filter += s + QLatin1Char(' ');
filter += commands.at(i);
}
filter += QLatin1Char(')');
return filter;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment