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
812348fb
Commit
812348fb
authored
Feb 22, 2014
by
Lorenz Meier
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #564 from DonLakeFlyer/ConnectFix
Failed QObject::Connect fix
parents
4818b4e4
4c8449c8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
8 deletions
+6
-8
QGCConfigView.cc
src/ui/QGCConfigView.cc
+5
-3
UASListWidget.cc
src/ui/uas/UASListWidget.cc
+1
-5
No files found.
src/ui/QGCConfigView.cc
View file @
812348fb
...
...
@@ -95,9 +95,11 @@ void QGCConfigView::activeUASChanged(UASInterface* uas)
}
}
else
{
//restore waiting label if we no longer have a connection
ui
->
gridLayout
->
addWidget
(
ui
->
waitingLabel
);
ui
->
waitingLabel
->
setVisible
(
true
);
if
(
ui
->
waitingLabel
)
{
//restore waiting label if we no longer have a connection
ui
->
gridLayout
->
addWidget
(
ui
->
waitingLabel
);
ui
->
waitingLabel
->
setVisible
(
true
);
}
}
}
src/ui/uas/UASListWidget.cc
View file @
812348fb
...
...
@@ -195,11 +195,6 @@ void UASListWidget::addUAS(UASInterface* uas)
uasViews
.
insert
(
uas
,
newView
);
uasToBoxMapping
[
uas
]
=
newBox
;
newBox
->
layout
()
->
addWidget
(
newView
);
// Watch for when this widget is destroyed so that we can clean up the
// groupbox if necessary.
connect
(
newView
,
SIGNAL
(
destroyed
(
QObject
*
)),
this
,
SLOT
(
removeUASView
(
QObject
*
)));
}
}
}
...
...
@@ -243,6 +238,7 @@ void UASListWidget::removeUAS(UASInterface* uas)
if
(
i
.
value
()
==
box
)
{
linkToBoxMapping
.
remove
(
i
.
key
());
break
;
}
++
i
;
}
...
...
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