Example #1
0
void FrostEdit::on_close_clicked() {

	Console* c = qobject_cast<Console*>(mApplicationOutput->currentWidget());
	if(c != nullptr) {
		QProcess* proc = c->getProcess();
		if(proc != nullptr) {
			if(c->running())
				c->closeProcess();
			mRunningApplication.removeAt(mRunningApplication.indexOf(proc));
			delete proc;
		}
	}
}