| 195 | } |
| 196 | |
| 197 | Gui::TaskView::TaskDialog* ControlSingleton::activeDialog(App::Document* attachedTo) const |
| 198 | { |
| 199 | attachedTo = docOrDefault(attachedTo); |
| 200 | if (!attachedTo) { |
| 201 | return nullptr; |
| 202 | } |
| 203 | |
| 204 | Gui::TaskView::TaskView* taskView = taskPanel(); |
| 205 | |
| 206 | if (taskView) { |
| 207 | return taskView->dialog(attachedTo); |
| 208 | } |
| 209 | return nullptr; |
| 210 | } |
| 211 | |
| 212 | void ControlSingleton::accept(App::Document* attachedTo) |
| 213 | { |