| 1113 | } |
| 1114 | |
| 1115 | df::job *Gui::getSelectedJob(color_ostream &out, bool quiet) |
| 1116 | { |
| 1117 | df::job *job = getAnyJob(Core::getTopViewscreen()); |
| 1118 | |
| 1119 | if (!job && !quiet) |
| 1120 | out.printerr("No job can be found from what is selected in the UI.\n"); |
| 1121 | |
| 1122 | return job; |
| 1123 | } |
| 1124 | |
| 1125 | df::unit *Gui::getAnyUnit(df::viewscreen *top) |
| 1126 | { |