mirror of
				https://github.com/f4exb/sdrangel.git
				synced 2025-11-03 13:11:20 -05:00 
			
		
		
		
	Remove unneeded calls to disconnect signals
Signals are automatically disconnected when QObjects are destroyed: https://doc.qt.io/qt-5/qobject.html#dtor.QObject
This commit is contained in:
		
							parent
							
								
									9ac66a3396
								
							
						
					
					
						commit
						3106b2c9da
					
				@ -284,28 +284,9 @@ SIDGUI::SIDGUI(PluginAPI* pluginAPI, FeatureUISet *featureUISet, Feature *featur
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
SIDGUI::~SIDGUI()
 | 
					SIDGUI::~SIDGUI()
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    QObject::disconnect(ui->chartSplitter, &QSplitter::splitterMoved, this, &SIDGUI::chartSplitterMoved);
 | 
					 | 
				
			||||||
    QObject::disconnect(ui->sdoSplitter, &QSplitter::splitterMoved, this, &SIDGUI::sdoSplitterMoved);
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
    QObject::disconnect(&m_availableFeatureHandler,
 | 
					 | 
				
			||||||
        &AvailableChannelOrFeatureHandler::channelsOrFeaturesChanged,
 | 
					 | 
				
			||||||
        this,
 | 
					 | 
				
			||||||
        &SIDGUI::featuresChanged
 | 
					 | 
				
			||||||
    );
 | 
					 | 
				
			||||||
    QObject::disconnect(&m_availableChannelHandler,
 | 
					 | 
				
			||||||
        &AvailableChannelOrFeatureHandler::channelsOrFeaturesChanged,
 | 
					 | 
				
			||||||
        this,
 | 
					 | 
				
			||||||
        &SIDGUI::channelsChanged
 | 
					 | 
				
			||||||
    );
 | 
					 | 
				
			||||||
    disconnectDataUpdates();
 | 
					 | 
				
			||||||
    if (m_grb) {
 | 
					 | 
				
			||||||
        disconnect(m_grb, &GRB::dataUpdated, this, &SIDGUI::grbDataUpdated);
 | 
					 | 
				
			||||||
    delete m_grb;
 | 
					    delete m_grb;
 | 
				
			||||||
    }
 | 
					 | 
				
			||||||
    if (m_stix) {
 | 
					 | 
				
			||||||
        disconnect(m_stix, &STIX::dataUpdated, this, &SIDGUI::stixDataUpdated);
 | 
					 | 
				
			||||||
    delete m_stix;
 | 
					    delete m_stix;
 | 
				
			||||||
    }
 | 
					
 | 
				
			||||||
    m_statusTimer.stop();
 | 
					    m_statusTimer.stop();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    clearFromMap();
 | 
					    clearFromMap();
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user