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
3c0c01d6
Commit
3c0c01d6
authored
Jun 06, 2015
by
Lorenz Meier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mainwindow: Fix HIL config deletion
parent
f10f22a7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
MainWindow.cc
src/ui/MainWindow.cc
+9
-0
MainWindow.h
src/ui/MainWindow.h
+3
-0
No files found.
src/ui/MainWindow.cc
View file @
3c0c01d6
...
...
@@ -796,6 +796,7 @@ void MainWindow::connectCommonActions()
// Connect internal actions
connect
(
UASManager
::
instance
(),
SIGNAL
(
UASCreated
(
UASInterface
*
)),
this
,
SLOT
(
UASCreated
(
UASInterface
*
)));
connect
(
UASManager
::
instance
(),
SIGNAL
(
UASDeleted
(
int
)),
this
,
SLOT
(
UASDeleted
(
int
)));
// Unmanned System controls
connect
(
_ui
.
actionLiftoff
,
SIGNAL
(
triggered
()),
UASManager
::
instance
(),
SLOT
(
launchActiveUAS
()));
...
...
@@ -909,6 +910,14 @@ void MainWindow::UASCreated(UASInterface* uas)
}
}
void
MainWindow
::
UASDeleted
(
int
uasId
)
{
if
(
_mapUasId2HilDockWidget
.
contains
(
uasId
))
{
_mapUasId2HilDockWidget
[
uasId
]
->
deleteLater
();
_mapUasId2HilDockWidget
.
remove
(
uasId
);
}
}
/// Stores the state of the toolbar, status bar and widgets associated with the current view
void
MainWindow
::
_storeCurrentViewState
(
void
)
{
...
...
src/ui/MainWindow.h
View file @
3c0c01d6
...
...
@@ -146,6 +146,9 @@ public slots:
/** @brief Add a new UAS */
void
UASCreated
(
UASInterface
*
uas
);
/** @brief Remove an old UAS */
void
UASDeleted
(
int
uasID
);
void
handleMisconfiguration
(
UASInterface
*
uas
);
/** @brief Load configuration views */
void
loadSetupView
();
...
...
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