mirror of
https://bitbucket.org/smil3y/kde-playground.git
synced 2025-02-23 18:32:51 +00:00
kemu: no need to wait for the process to start
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
6c9ec21ad1
commit
9011f4fc1e
1 changed files with 1 additions and 2 deletions
|
@ -255,13 +255,12 @@ void KEmuMainWindow::startStopMachine()
|
|||
}
|
||||
QProcess* machineProcess = new QProcess(this);
|
||||
machineProcess->setProcessChannelMode(QProcess::MergedChannels);
|
||||
machineProcess->start(m_kemuui->systemComboBox->currentText(), machineArgs);
|
||||
machineProcess->waitForStarted();
|
||||
m_kemuui->startStopButton->setText(i18n("Stop"));
|
||||
m_kemuui->startStopButton->setIcon(KIcon("system-shutdown"));
|
||||
m_machines.insert(machine, machineProcess);
|
||||
connect(machineProcess, SIGNAL(finished(int,QProcess::ExitStatus)),
|
||||
this, SLOT(machineFinished(int,QProcess::ExitStatus)));
|
||||
machineProcess->start(m_kemuui->systemComboBox->currentText(), machineArgs);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue