Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qgroundcontrol
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Valentin Platzgummer
qgroundcontrol
Commits
81a1849c
Commit
81a1849c
authored
Jan 17, 2013
by
Lorenz Meier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix stupid local variable bug
parent
f1d3602e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
HUD.cc
src/ui/HUD.cc
+7
-7
No files found.
src/ui/HUD.cc
View file @
81a1849c
...
@@ -1489,13 +1489,13 @@ void HUD::copyImage()
...
@@ -1489,13 +1489,13 @@ void HUD::copyImage()
if
(
u
)
if
(
u
)
{
{
this
->
glImage
=
QGLWidget
::
convertToGLFormat
(
u
->
getImage
());
this
->
glImage
=
QGLWidget
::
convertToGLFormat
(
u
->
getImage
());
}
// Save to directory if logging is enabled
// Save to directory if logging is enabled
if
(
imageLoggingEnabled
)
if
(
imageLoggingEnabled
)
{
{
u
->
getImage
().
save
(
QString
(
"%1/%2.png"
).
arg
(
imageLogDirectory
).
arg
(
imageLogCounter
));
u
->
getImage
().
save
(
QString
(
"%1/%2.png"
).
arg
(
imageLogDirectory
).
arg
(
imageLogCounter
));
imageLogCounter
++
;
imageLogCounter
++
;
}
}
}
}
}
}
}
...
@@ -1507,7 +1507,7 @@ void HUD::saveImages(bool save)
...
@@ -1507,7 +1507,7 @@ void HUD::saveImages(bool save)
QFileDialog
dialog
(
this
);
QFileDialog
dialog
(
this
);
dialog
.
setFileMode
(
QFileDialog
::
DirectoryOnly
);
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
;
qDebug
()
<<
"Logging to:"
<<
imageLogDirectory
;
...
...
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