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
3b5460a8
Unverified
Commit
3b5460a8
authored
Mar 25, 2020
by
Don Gagne
Committed by
GitHub
Mar 25, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8603 from DonLakeFlyer/LogDownloadMobile
Fix mobile Log Download
parents
4fc65407
9af279f5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
16 deletions
+13
-16
ChangeLog.md
ChangeLog.md
+2
-0
LogDownloadController.cc
src/AnalyzeView/LogDownloadController.cc
+1
-11
LogDownloadPage.qml
src/AnalyzeView/LogDownloadPage.qml
+10
-5
No files found.
ChangeLog.md
View file @
3b5460a8
...
...
@@ -6,6 +6,8 @@ Note: This file only contains high level features or important fixes.
### 4.0.6 - Not yet released
*
Analyze/Log Download - Fix download on mobile versions of QGC
### 4.0.5 - Stable
*
Solo: Fix mission upload failures
...
...
src/AnalyzeView/LogDownloadController.cc
View file @
3b5460a8
...
...
@@ -519,19 +519,9 @@ void
LogDownloadController
::
download
(
QString
path
)
{
QString
dir
=
path
;
#if defined(__mobile__)
if
(
dir
.
isEmpty
())
{
if
(
dir
.
isEmpty
())
{
dir
=
qgcApp
()
->
toolbox
()
->
settingsManager
()
->
appSettings
()
->
logSavePath
();
}
#else
if
(
dir
.
isEmpty
())
{
dir
=
QString
();
//-- TODO: QGCQFileDialog::getExistingDirectory(
// MainWindow::instance(),
// tr("Log Download Directory"),
// QDir::homePath(),
// QGCQFileDialog::ShowDirsOnly | QGCQFileDialog::DontResolveSymlinks);
}
#endif
downloadToDirectory
(
dir
);
}
...
...
src/AnalyzeView/LogDownloadPage.qml
View file @
3b5460a8
...
...
@@ -147,11 +147,16 @@ AnalyzePage {
var
o
=
logController
.
model
.
get
(
rowIndex
)
if
(
o
)
o
.
selected
=
true
})
fileDialog
.
title
=
qsTr
(
"
Select save directory
"
)
fileDialog
.
selectExisting
=
true
fileDialog
.
folder
=
QGroundControl
.
settingsManager
.
appSettings
.
logSavePath
fileDialog
.
selectFolder
=
true
fileDialog
.
openForLoad
()
if
(
ScreenTools
.
isMobile
)
{
// You can't pick folders in mobile, only default location is used
logController
.
download
()
}
else
{
fileDialog
.
title
=
qsTr
(
"
Select save directory
"
)
fileDialog
.
selectExisting
=
true
fileDialog
.
folder
=
QGroundControl
.
settingsManager
.
appSettings
.
logSavePath
fileDialog
.
selectFolder
=
true
fileDialog
.
openForLoad
()
}
}
QGCFileDialog
{
id
:
fileDialog
...
...
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