| 2294 | } |
| 2295 | |
| 2296 | void MainWin::redo() { |
| 2297 | WAIT_CURSOR; |
| 2298 | m_project->undoStack()->redo(); |
| 2299 | m_undoAction->setEnabled(true); |
| 2300 | |
| 2301 | const int index = m_project->undoStack()->index(); |
| 2302 | if (index == m_project->undoStack()->count()) |
| 2303 | m_redoAction->setEnabled(false); |
| 2304 | |
| 2305 | const bool changed = (index != undoStackIndexLastSave); |
| 2306 | m_saveAction->setEnabled(changed); |
| 2307 | m_project->setChanged(changed); |
| 2308 | updateTitleBar(); |
| 2309 | RESET_CURSOR; |
| 2310 | } |
| 2311 | |
| 2312 | /*! |
| 2313 | Shows/hides docks depending on the current visibility policy. |