Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
otb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
273
Issues
273
List
Boards
Labels
Service Desk
Milestones
Merge Requests
8
Merge Requests
8
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Main Repositories
otb
Commits
5eeb4c12
Commit
5eeb4c12
authored
Nov 03, 2015
by
Stéphane Albert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ENH: Add isEmpty() test to prevent qWarning() trace.
parent
9a5abec9
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
72 additions
and
50 deletions
+72
-50
Modules/Wrappers/QtWidget/src/otbWrapperQtWidgetInputFilenameParameter.cxx
...QtWidget/src/otbWrapperQtWidgetInputFilenameParameter.cxx
+9
-6
Modules/Wrappers/QtWidget/src/otbWrapperQtWidgetInputImageParameter.cxx
...rs/QtWidget/src/otbWrapperQtWidgetInputImageParameter.cxx
+9
-6
Modules/Wrappers/QtWidget/src/otbWrapperQtWidgetInputProcessXMLParameter.cxx
...Widget/src/otbWrapperQtWidgetInputProcessXMLParameter.cxx
+9
-6
Modules/Wrappers/QtWidget/src/otbWrapperQtWidgetInputVectorDataParameter.cxx
...Widget/src/otbWrapperQtWidgetInputVectorDataParameter.cxx
+9
-6
Modules/Wrappers/QtWidget/src/otbWrapperQtWidgetOutputFilenameParameter.cxx
...tWidget/src/otbWrapperQtWidgetOutputFilenameParameter.cxx
+9
-7
Modules/Wrappers/QtWidget/src/otbWrapperQtWidgetOutputImageParameter.cxx
...s/QtWidget/src/otbWrapperQtWidgetOutputImageParameter.cxx
+9
-7
Modules/Wrappers/QtWidget/src/otbWrapperQtWidgetOutputProcessXMLParameter.cxx
...idget/src/otbWrapperQtWidgetOutputProcessXMLParameter.cxx
+9
-6
Modules/Wrappers/QtWidget/src/otbWrapperQtWidgetOutputVectorDataParameter.cxx
...idget/src/otbWrapperQtWidgetOutputVectorDataParameter.cxx
+9
-6
No files found.
Modules/Wrappers/QtWidget/src/otbWrapperQtWidgetInputFilenameParameter.cxx
View file @
5eeb4c12
...
...
@@ -95,13 +95,16 @@ void QtWidgetInputFilenameParameter::SelectFile()
assert
(
m_Input
!=
NULL
);
QFileInfo
finfo
(
m_Input
->
text
()
);
if
(
!
m_Input
->
text
().
isEmpty
()
)
{
QFileInfo
finfo
(
m_Input
->
text
()
);
fileDialog
.
setDirectory
(
finfo
.
isDir
()
?
finfo
.
absoluteFilePath
()
:
finfo
.
absoluteDir
()
);
fileDialog
.
setDirectory
(
finfo
.
isDir
()
?
finfo
.
absoluteFilePath
()
:
finfo
.
absoluteDir
()
);
}
if
(
fileDialog
.
exec
())
...
...
Modules/Wrappers/QtWidget/src/otbWrapperQtWidgetInputImageParameter.cxx
View file @
5eeb4c12
...
...
@@ -80,13 +80,16 @@ void QtWidgetInputImageParameter::SelectFile()
assert
(
m_Input
!=
NULL
);
QFileInfo
finfo
(
m_Input
->
text
()
);
if
(
!
m_Input
->
text
().
isEmpty
()
)
{
QFileInfo
finfo
(
m_Input
->
text
()
);
fileDialog
.
setDirectory
(
finfo
.
isDir
()
?
finfo
.
absoluteFilePath
()
:
finfo
.
absoluteDir
()
);
fileDialog
.
setDirectory
(
finfo
.
isDir
()
?
finfo
.
absoluteFilePath
()
:
finfo
.
absoluteDir
()
);
}
if
(
fileDialog
.
exec
())
{
...
...
Modules/Wrappers/QtWidget/src/otbWrapperQtWidgetInputProcessXMLParameter.cxx
View file @
5eeb4c12
...
...
@@ -73,13 +73,16 @@ void QtWidgetInputProcessXMLParameter::SelectFile()
assert
(
m_Input
!=
NULL
);
QFileInfo
finfo
(
m_Input
->
text
()
);
if
(
!
m_Input
->
text
().
isEmpty
()
)
{
QFileInfo
finfo
(
m_Input
->
text
()
);
fileDialog
.
setDirectory
(
finfo
.
isDir
()
?
finfo
.
absoluteFilePath
()
:
finfo
.
absoluteDir
()
);
fileDialog
.
setDirectory
(
finfo
.
isDir
()
?
finfo
.
absoluteFilePath
()
:
finfo
.
absoluteDir
()
);
}
if
(
fileDialog
.
exec
())
{
...
...
Modules/Wrappers/QtWidget/src/otbWrapperQtWidgetInputVectorDataParameter.cxx
View file @
5eeb4c12
...
...
@@ -76,13 +76,16 @@ void QtWidgetInputVectorDataParameter::SelectFile()
assert
(
m_Input
!=
NULL
);
QFileInfo
finfo
(
m_Input
->
text
()
);
if
(
!
m_Input
->
text
().
isEmpty
()
)
{
QFileInfo
finfo
(
m_Input
->
text
()
);
fileDialog
.
setDirectory
(
finfo
.
isDir
()
?
finfo
.
absoluteFilePath
()
:
finfo
.
absoluteDir
()
);
fileDialog
.
setDirectory
(
finfo
.
isDir
()
?
finfo
.
absoluteFilePath
()
:
finfo
.
absoluteDir
()
);
}
if
(
fileDialog
.
exec
())
{
...
...
Modules/Wrappers/QtWidget/src/otbWrapperQtWidgetOutputFilenameParameter.cxx
View file @
5eeb4c12
...
...
@@ -89,14 +89,16 @@ void QtWidgetOutputFilenameParameter::SelectFile()
assert
(
m_Input
!=
NULL
);
QFileInfo
finfo
(
m_Input
->
text
()
);
fileDialog
.
setDirectory
(
finfo
.
isDir
()
?
finfo
.
absoluteFilePath
()
:
finfo
.
absoluteDir
()
);
if
(
!
m_Input
->
text
().
isEmpty
()
)
{
QFileInfo
finfo
(
m_Input
->
text
()
);
fileDialog
.
setDirectory
(
finfo
.
isDir
()
?
finfo
.
absoluteFilePath
()
:
finfo
.
absoluteDir
()
);
}
if
(
fileDialog
.
exec
())
{
...
...
Modules/Wrappers/QtWidget/src/otbWrapperQtWidgetOutputImageParameter.cxx
View file @
5eeb4c12
...
...
@@ -92,14 +92,16 @@ void QtWidgetOutputImageParameter::SelectFile()
assert
(
m_Input
!=
NULL
);
QFileInfo
finfo
(
m_Input
->
text
()
);
fileDialog
.
setDirectory
(
finfo
.
isDir
()
?
finfo
.
absoluteFilePath
()
:
finfo
.
absoluteDir
()
);
if
(
!
m_Input
->
text
().
isEmpty
()
)
{
QFileInfo
finfo
(
m_Input
->
text
()
);
fileDialog
.
setDirectory
(
finfo
.
isDir
()
?
finfo
.
absoluteFilePath
()
:
finfo
.
absoluteDir
()
);
}
if
(
fileDialog
.
exec
())
{
...
...
Modules/Wrappers/QtWidget/src/otbWrapperQtWidgetOutputProcessXMLParameter.cxx
View file @
5eeb4c12
...
...
@@ -74,13 +74,16 @@ void QtWidgetOutputProcessXMLParameter::SelectFile()
assert
(
m_Input
!=
NULL
);
QFileInfo
finfo
(
m_Input
->
text
()
);
if
(
!
m_Input
->
text
().
isEmpty
()
)
{
QFileInfo
finfo
(
m_Input
->
text
()
);
fileDialog
.
setDirectory
(
finfo
.
isDir
()
?
finfo
.
absoluteFilePath
()
:
finfo
.
absoluteDir
()
);
fileDialog
.
setDirectory
(
finfo
.
isDir
()
?
finfo
.
absoluteFilePath
()
:
finfo
.
absoluteDir
()
);
}
if
(
fileDialog
.
exec
())
{
...
...
Modules/Wrappers/QtWidget/src/otbWrapperQtWidgetOutputVectorDataParameter.cxx
View file @
5eeb4c12
...
...
@@ -73,13 +73,16 @@ void QtWidgetOutputVectorDataParameter::SelectFile()
assert
(
m_Input
!=
NULL
);
QFileInfo
finfo
(
m_Input
->
text
()
);
if
(
!
m_Input
->
text
().
isEmpty
()
)
{
QFileInfo
finfo
(
m_Input
->
text
()
);
fileDialog
.
setDirectory
(
finfo
.
isDir
()
?
finfo
.
absoluteFilePath
()
:
finfo
.
absoluteDir
()
);
fileDialog
.
setDirectory
(
finfo
.
isDir
()
?
finfo
.
absoluteFilePath
()
:
finfo
.
absoluteDir
()
);
}
if
(
fileDialog
.
exec
())
{
...
...
Write
Preview
Markdown
is supported
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