1
0
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:
Philippe Renon 2014-07-14 22:09:53 +02:00
parent e261404206
commit ef785bd060
2 changed files with 1 additions and 5 deletions

View File

@ -83,10 +83,6 @@ public:
void init();
QIODevice *getCurrentConnection()
{
return m_ioDev;
}
DevListItem getCurrentDevice()
{
return m_connectionDevice;

View File

@ -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 {