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
df70c98b
Commit
df70c98b
authored
Sep 08, 2011
by
LM
Browse files
Merge branch 'dev-lin' of github.com:pixhawk/qgroundcontrol into dev-mac
parents
fc90eecd
758258fd
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/configuration.h
View file @
df70c98b
...
...
@@ -12,14 +12,14 @@
#define WITH_TEXT_TO_SPEECH 1
#define QGC_APPLICATION_NAME "QGroundControl"
#define QGC_APPLICATION_VERSION "v. 0.9.
0
(Alpha RC1)"
#define QGC_APPLICATION_VERSION "v. 0.9.
1
(Alpha RC1)"
namespace
QGC
{
const
QString
APPNAME
=
"QGROUNDCONTROL"
;
const
QString
COMPANYNAME
=
"QGROUNDCONTROL"
;
const
int
APPLICATIONVERSION
=
9
0
;
// 0.9.0
const
int
APPLICATIONVERSION
=
9
1
;
// 0.9.0
}
#endif // QGC_CONFIGURATION_H
src/ui/linechart/LinechartWidget.cc
View file @
df70c98b
...
...
@@ -453,11 +453,6 @@ void LinechartWidget::startLogging()
// QString("./pixhawk-log-" + date.toString("yyyy-MM-dd") + "-" + QString::number(logindex) + ".log")
QString
fileName
=
QFileDialog
::
getSaveFileName
(
this
,
tr
(
"Specify log file name"
),
QDesktopServices
::
storageLocation
(
QDesktopServices
::
DesktopLocation
),
tr
(
"Logfile (*.csv *.txt);;"
));
if
(
!
fileName
.
contains
(
"."
))
{
// .csv is default extension
fileName
.
append
(
".csv"
);
}
while
(
!
(
fileName
.
endsWith
(
".txt"
)
||
fileName
.
endsWith
(
".csv"
))
&&
!
abort
&&
fileName
!=
""
)
{
QMessageBox
msgBox
;
msgBox
.
setIcon
(
QMessageBox
::
Critical
);
...
...
@@ -465,14 +460,16 @@ void LinechartWidget::startLogging()
msgBox
.
setInformativeText
(
"Please choose .txt or .csv as file extension. Click OK to change the file extension, cancel to not start logging."
);
msgBox
.
setStandardButtons
(
QMessageBox
::
Ok
|
QMessageBox
::
Cancel
);
msgBox
.
setDefaultButton
(
QMessageBox
::
Ok
);
if
(
msgBox
.
exec
()
==
QMessageBox
::
Cancel
)
{
if
(
msgBox
.
exec
()
!=
QMessageBox
::
Ok
)
{
abort
=
true
;
break
;
}
fileName
=
QFileDialog
::
getSaveFileName
(
this
,
tr
(
"Specify log file name"
),
QDesktopServices
::
storageLocation
(
QDesktopServices
::
DesktopLocation
),
tr
(
"Logfile (*.txt, *.csv);;"
));
fileName
=
QFileDialog
::
getSaveFileName
(
this
,
tr
(
"Specify log file name"
),
QDesktopServices
::
storageLocation
(
QDesktopServices
::
DesktopLocation
),
tr
(
"Logfile (*.txt *.csv);;"
));
}
qDebug
()
<<
"SAVE FILE"
<<
fileName
;
// Check if the user did not abort the file save dialog
if
(
!
abort
&&
fileName
!=
""
)
{
logFile
=
new
QFile
(
fileName
);
...
...
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