| 155 | } |
| 156 | |
| 157 | void WorkingSetToolButton::buttonTriggered() |
| 158 | { |
| 159 | Q_ASSERT(m_set); |
| 160 | |
| 161 | if(mainWindow()->area()->workingSet() == m_set->id()) { |
| 162 | showTooltip(QCursor::pos()); |
| 163 | }else{ |
| 164 | //Only close the working-set if the file was saved before |
| 165 | if (!saveAllDocumentsForMainWindow()) |
| 166 | return; |
| 167 | m_set->setPersistent(true); |
| 168 | mainWindow()->area()->setWorkingSet(m_set->id()); |
| 169 | } |
| 170 | } |
| 171 | |
| 172 | #include "moc_workingsettoolbutton.cpp" |
nothing calls this directly
no test coverage detected