Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
b7796bf3
Commit
b7796bf3
authored
Nov 08, 2010
by
Tobias Hunger
Browse files
Make sure we do not get "//" in the QMake path
Task-number: QTCREATORBUG-2990
parent
00a97664
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/libs/utils/buildablehelperlibrary.cpp
View file @
b7796bf3
...
...
@@ -48,8 +48,11 @@ QString BuildableHelperLibrary::findSystemQt(const Utils::Environment &env)
{
QStringList
paths
=
env
.
path
();
foreach
(
const
QString
&
path
,
paths
)
{
QString
prefix
=
path
;
if
(
!
prefix
.
endsWith
(
QLatin1Char
(
'/'
)))
prefix
.
append
(
QLatin1Char
(
'/'
));
foreach
(
const
QString
&
possibleCommand
,
possibleQMakeCommands
())
{
const
QFileInfo
qmake
(
p
ath
+
QLatin1Char
(
'/'
)
+
possibleCommand
);
const
QFileInfo
qmake
(
p
refix
+
possibleCommand
);
if
(
qmake
.
exists
())
{
if
(
!
qtVersionForQMake
(
qmake
.
absoluteFilePath
()).
isNull
())
{
return
qmake
.
absoluteFilePath
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment