| 570 | } |
| 571 | |
| 572 | void MainWindow::unloadPlugins() |
| 573 | { |
| 574 | // don't try to reload while running |
| 575 | if(ui->graphicsView->isRunning()) |
| 576 | return; |
| 577 | |
| 578 | setActiveProcessStep(NULL); |
| 579 | _allowChangeActiveProcessStep = false; |
| 580 | writeProcessFile(); |
| 581 | clearScene(); |
| 582 | _pluginManager->unloadPlugins(); |
| 583 | readProcessFile(); |
| 584 | |
| 585 | // activate plugin tab |
| 586 | ui->processTabWidget->setCurrentIndex(ui->processTabWidget->count()-1); |
| 587 | |
| 588 | // refresh process library |
| 589 | ui->processTabWidget->init(this); |
| 590 | |
| 591 | // switch to last tab again |
| 592 | ui->processTabWidget->setCurrentIndex(ui->processTabWidget->count()-1); |
| 593 | |
| 594 | _allowChangeActiveProcessStep = true; |
| 595 | } |
| 596 | |
| 597 | void MainWindow::setFilterFocus() |
| 598 | { |
no test coverage detected