Skip to content
GitLab
Menu
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
f8b67dcd
Commit
f8b67dcd
authored
Oct 28, 2009
by
dt
Browse files
Fix importing via "import settings" label addind a unecessary -spec
parent
b921489a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qt4projectmanager/qt4projectconfigwidget.cpp
View file @
f8b67dcd
...
...
@@ -290,13 +290,18 @@ void Qt4ProjectConfigWidget::importLabelClicked()
QString
versionSpec
=
version
->
sourcePath
()
+
"/mkspecs/"
+
version
->
mkspec
();
QString
parsedSpec
=
Qt4Project
::
extractSpecFromArgumentList
(
additionalArguments
);
QString
parsedSpecOrginal
=
parsedSpec
;
if
(
QFileInfo
(
parsedSpec
).
isRelative
())
parsedSpec
=
QDir
::
cleanPath
(
directory
+
"/"
+
parsedSpec
);
additionalArguments
=
Qt4Project
::
removeSpecFromArgumentList
(
additionalArguments
);
if
(
parsedSpec
!=
versionSpec
)
{
additionalArguments
.
prepend
(
parsedSpecOrginal
);
additionalArguments
.
prepend
(
"-spec"
);
if
(
parsedSpec
.
isEmpty
())
{
// using the default spec, don't modify additional arguments
}
else
{
QString
parsedSpecOrginal
=
parsedSpec
;
if
(
QFileInfo
(
parsedSpec
).
isRelative
())
parsedSpec
=
QDir
::
cleanPath
(
directory
+
"/"
+
parsedSpec
);
additionalArguments
=
Qt4Project
::
removeSpecFromArgumentList
(
additionalArguments
);
if
(
parsedSpec
!=
versionSpec
)
{
additionalArguments
.
prepend
(
parsedSpecOrginal
);
additionalArguments
.
prepend
(
"-spec"
);
}
}
// So we got all the information now apply it...
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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