mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-18 08:54:15 +01:00
OP-1383 follow up cleanup - ConnectionManager should not readily expose internal QIODevice
This commit is contained in:
parent
e261404206
commit
ef785bd060
@ -83,10 +83,6 @@ public:
|
||||
|
||||
void init();
|
||||
|
||||
QIODevice *getCurrentConnection()
|
||||
{
|
||||
return m_ioDev;
|
||||
}
|
||||
DevListItem getCurrentDevice()
|
||||
{
|
||||
return m_connectionDevice;
|
||||
|
@ -264,7 +264,7 @@ void ScopeGadgetWidget::preparePlot(PlotType plotType)
|
||||
|
||||
// Only start the timer if we are already connected
|
||||
Core::ConnectionManager *cm = Core::ICore::instance()->connectionManager();
|
||||
if (cm->getCurrentConnection() && replotTimer) {
|
||||
if (cm->isConnected() && replotTimer) {
|
||||
if (!replotTimer->isActive()) {
|
||||
replotTimer->start(m_refreshInterval);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user