mirror of
https://bitbucket.org/smil3y/kde-playground.git
synced 2025-02-23 18:32:51 +00:00
kemu: minor cleanup
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
27b3051a80
commit
9280dfb076
1 changed files with 2 additions and 4 deletions
|
@ -142,10 +142,8 @@ KEmuMainWindow::~KEmuMainWindow()
|
|||
m_settings->deleteLater();
|
||||
foreach(QProcess* machineProcess, m_machines) {
|
||||
const QString machine = m_machines.key(machineProcess);
|
||||
if (machineProcess->state() == QProcess::Running) {
|
||||
kDebug() << "stopping machine" << machine;
|
||||
machineProcess->terminate();
|
||||
}
|
||||
kDebug() << "stopping machine" << machine;
|
||||
machineProcess->terminate();
|
||||
machineProcess->deleteLater();
|
||||
m_machines.remove(machine);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue