* @brief Restores the workspace path saved by setTemporaryPath(). */
| 122 | * @brief Restores the workspace path saved by setTemporaryPath(). |
| 123 | */ |
| 124 | void Misc::WorkspaceManager::clearTemporaryPath() |
| 125 | { |
| 126 | if (!m_temporaryActive) |
| 127 | return; |
| 128 | |
| 129 | m_path = m_savedPath; |
| 130 | m_temporaryActive = false; |
| 131 | m_savedPath.clear(); |
| 132 | Q_EMIT pathChanged(); |
| 133 | } |
| 134 | |
| 135 | /** |
| 136 | * @brief Resets the workspace path to the default location. |