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
Tobias Hunger
qt-creator
Commits
71ad41a0
Commit
71ad41a0
authored
Apr 15, 2010
by
Tobias Hunger
Browse files
Show warning when no builds were imported
Tasknumber: QTCREATORBUG-1148
parent
9b2a6d80
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/qt4projectmanager/wizards/targetsetuppage.cpp
View file @
71ad41a0
...
@@ -37,6 +37,7 @@
...
@@ -37,6 +37,7 @@
#include <QtGui/QHeaderView>
#include <QtGui/QHeaderView>
#include <QtGui/QLabel>
#include <QtGui/QLabel>
#include <QtGui/QLayout>
#include <QtGui/QLayout>
#include <QtGui/QMessageBox>
#include <QtGui/QPushButton>
#include <QtGui/QPushButton>
#include <QtGui/QTreeWidget>
#include <QtGui/QTreeWidget>
...
@@ -391,9 +392,17 @@ void TargetSetupPage::addShadowBuildLocation()
...
@@ -391,9 +392,17 @@ void TargetSetupPage::addShadowBuildLocation()
if
(
!
dir
.
exists
()
||
!
dir
.
isDir
())
if
(
!
dir
.
exists
()
||
!
dir
.
isDir
())
return
;
return
;
QList
<
ImportInfo
>
tmp
=
m_infos
;
QList
<
ImportInfo
>
tmp
;
m_infos
.
clear
();
// Clear m_infos without deleting temporary QtVersions!
tmp
.
append
(
recursivelyCheckDirectoryForBuild
(
dir
.
absoluteFilePath
(),
m_proFilePath
));
tmp
.
append
(
recursivelyCheckDirectoryForBuild
(
dir
.
absoluteFilePath
(),
m_proFilePath
));
if
(
tmp
.
isEmpty
())
{
QMessageBox
::
warning
(
this
,
tr
(
"No builds found!"
),
tr
(
"No builds for project file
\"
%1
\"
were found in directory
\"
%2
\"
."
,
"%1: pro-file, %2: directory that was checked."
).
arg
(
m_proFilePath
,
dir
.
absoluteFilePath
()));
return
;
}
tmp
.
append
(
m_infos
);
m_infos
.
clear
();
// Clear m_infos without deleting temporary QtVersions!
setImportInfos
(
tmp
);
setImportInfos
(
tmp
);
}
}
...
...
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