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
ce05b1ba
Commit
ce05b1ba
authored
Jul 06, 2014
by
Don Gagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Debounce misconfiguration, fix onboard files view
parent
25177682
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
3 deletions
+14
-3
MainWindow.cc
src/ui/MainWindow.cc
+14
-3
No files found.
src/ui/MainWindow.cc
View file @
ce05b1ba
...
...
@@ -822,7 +822,7 @@ void MainWindow::loadDockWidget(const QString& name)
}
else
if
(
name
==
"FILE_VIEW_DOCKWIDGET"
)
{
createDockWidget
(
centerStack
->
currentWidget
(),
new
QGCUASFileViewMulti
(
this
),
tr
(
"Onboard Files"
),
"FILE_VIEW_DOCKWIDGET"
,
VIEW_ENGINEER
,
Qt
::
RightDockWidgetArea
);
createDockWidget
(
centerStack
->
currentWidget
(),
new
QGCUASFileViewMulti
(
this
),
tr
(
"Onboard Files"
),
"FILE_VIEW_DOCKWIDGET"
,
currentView
,
Qt
::
RightDockWidgetArea
);
}
else
if
(
name
==
"UAS_STATUS_DETAILS_DOCKWIDGET"
)
{
...
...
@@ -1993,8 +1993,19 @@ void MainWindow::setAdvancedMode(bool isAdvancedMode)
settings
.
setValue
(
"ADVANCED_MODE"
,
isAdvancedMode
);
}
void
MainWindow
::
handleMisconfiguration
(
UASInterface
*
uas
)
{
void
MainWindow
::
handleMisconfiguration
(
UASInterface
*
uas
)
{
static
QTime
lastTime
;
// We have to debounce this signal
if
(
!
lastTime
.
isValid
())
{
lastTime
.
start
();
}
else
{
if
(
lastTime
.
elapsed
()
<
10000
)
{
lastTime
.
start
();
return
;
}
}
// Ask user if he wants to handle this now
QMessageBox
msgBox
(
this
);
msgBox
.
setIcon
(
QMessageBox
::
Information
);
...
...
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