| 92 | } |
| 93 | |
| 94 | void MainWindowTitleProvider::update() |
| 95 | { |
| 96 | IAudacityProjectPtr project = context()->currentProject(); |
| 97 | |
| 98 | if (!project) { |
| 99 | setTitle(muse::qtrc("appshell", "Audacity 4")); |
| 100 | setFilePath(""); |
| 101 | setFileModified(false); |
| 102 | return; |
| 103 | } |
| 104 | |
| 105 | setTitle(project->title()); |
| 106 | |
| 107 | setFilePath(project->path().toQString()); |
| 108 | setFileModified(project->needSave().val); |
| 109 | } |
no test coverage detected