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
Tobias Hunger
qt-creator
Commits
5058233b
Commit
5058233b
authored
Mar 18, 2010
by
dt
Browse files
Fix crash on loading projects
parent
61a504c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qt4projectmanager/qtversionmanager.cpp
View file @
5058233b
...
...
@@ -982,8 +982,11 @@ void QtVersion::updateVersionInfo() const
while
(
!
stream
.
atEnd
())
{
const
QString
line
=
stream
.
readLine
();
const
int
index
=
line
.
indexOf
(
QLatin1Char
(
':'
));
if
(
index
!=
-
1
)
m_versionInfo
.
insert
(
line
.
left
(
index
),
QDir
::
fromNativeSeparators
(
line
.
mid
(
index
+
1
)));
if
(
index
!=
-
1
)
{
QString
value
=
QDir
::
fromNativeSeparators
(
line
.
mid
(
index
+
1
));
if
(
value
!=
"**Unknown**"
)
m_versionInfo
.
insert
(
line
.
left
(
index
),
value
);
}
}
}
...
...
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