mirror of
				https://github.com/f4exb/sdrangel.git
				synced 2025-11-03 13:11:20 -05:00 
			
		
		
		
	FFTW Wisdom file generator: do not open dialog if process is still running
This commit is contained in:
		
							parent
							
								
									2638ee9a4b
								
							
						
					
					
						commit
						072b5ef546
					
				@ -1783,6 +1783,13 @@ void MainWindow::on_action_DeviceUserArguments_triggered()
 | 
			
		||||
void MainWindow::on_action_FFT_triggered()
 | 
			
		||||
{
 | 
			
		||||
    qDebug("MainWindow::on_action_FFT_triggered");
 | 
			
		||||
 | 
			
		||||
    if (m_fftWisdomProcess)
 | 
			
		||||
    {
 | 
			
		||||
        QMessageBox::information(this, "FFTW Wisdom", QString("Process %1 is already running").arg(m_fftWisdomProcess->processId()));
 | 
			
		||||
        return;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    m_fftWisdomProcess = new QProcess(this);
 | 
			
		||||
    connect(m_fftWisdomProcess,
 | 
			
		||||
        SIGNAL(finished(int, QProcess::ExitStatus)),
 | 
			
		||||
@ -1797,6 +1804,7 @@ void MainWindow::on_action_FFT_triggered()
 | 
			
		||||
            this,
 | 
			
		||||
            SLOT(fftWisdomProcessFinished(int, QProcess::ExitStatus)));
 | 
			
		||||
        delete m_fftWisdomProcess;
 | 
			
		||||
        m_fftWisdomProcess = nullptr;
 | 
			
		||||
    }
 | 
			
		||||
    else
 | 
			
		||||
    {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user