| 1676 | } |
| 1677 | |
| 1678 | void TOPPViewBase::rerunTOPPTool() |
| 1679 | { |
| 1680 | if (topp_.tool.empty()) |
| 1681 | { |
| 1682 | QMessageBox::warning(this, "Error", "No TOPP tool was run before. Please run a tool first."); |
| 1683 | return; |
| 1684 | } |
| 1685 | // warn if hidden layer => wrong layer selected... |
| 1686 | const LayerDataBase& layer = getActiveCanvas()->getCurrentLayer(); |
| 1687 | if (!layer.visible) |
| 1688 | { |
| 1689 | log_->appendNewHeader(LogWindow::LogState::NOTICE, "The current layer is not visible", "Have you selected the right layer for this action?"); |
| 1690 | } |
| 1691 | |
| 1692 | // run the tool |
| 1693 | runTOPPTool_(); |
| 1694 | } |
| 1695 | |
| 1696 | void TOPPViewBase::runTOPPTool_() |
| 1697 | { |
nothing calls this directly
no test coverage detected