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
Valentin Platzgummer
qgroundcontrol
Commits
81a1849c
Commit
81a1849c
authored
Jan 17, 2013
by
Lorenz Meier
Browse files
Fix stupid local variable bug
parent
f1d3602e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ui/HUD.cc
View file @
81a1849c
...
...
@@ -1489,13 +1489,13 @@ void HUD::copyImage()
if
(
u
)
{
this
->
glImage
=
QGLWidget
::
convertToGLFormat
(
u
->
getImage
());
}
// Save to directory if logging is enabled
if
(
imageLoggingEnabled
)
{
u
->
getImage
().
save
(
QString
(
"%1/%2.png"
).
arg
(
imageLogDirectory
).
arg
(
imageLogCounter
));
imageLogCounter
++
;
// Save to directory if logging is enabled
if
(
imageLoggingEnabled
)
{
u
->
getImage
().
save
(
QString
(
"%1/%2.png"
).
arg
(
imageLogDirectory
).
arg
(
imageLogCounter
));
imageLogCounter
++
;
}
}
}
}
...
...
@@ -1507,7 +1507,7 @@ void HUD::saveImages(bool save)
QFileDialog
dialog
(
this
);
dialog
.
setFileMode
(
QFileDialog
::
DirectoryOnly
);
QString
imageLogDirectory
=
QFileDialog
::
getExistingDirectory
(
this
,
tr
(
"Select image log directory"
),
QDesktopServices
::
storageLocation
(
QDesktopServices
::
DesktopLocation
));
imageLogDirectory
=
QFileDialog
::
getExistingDirectory
(
this
,
tr
(
"Select image log directory"
),
QDesktopServices
::
storageLocation
(
QDesktopServices
::
DesktopLocation
));
qDebug
()
<<
"Logging to:"
<<
imageLogDirectory
;
...
...
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