| 190 | } |
| 191 | |
| 192 | bool SyncthingModels::copyPath(const QString &dirId, const QString &relativePath) |
| 193 | { |
| 194 | const auto fullPath = m_connection.fullPath(dirId, relativePath); |
| 195 | if (fullPath.isEmpty()) { |
| 196 | emit error(tr("Unable to copy \"%1\"").arg(relativePath)); |
| 197 | } else if (copyText(fullPath)) { |
| 198 | return true; |
| 199 | } |
| 200 | return false; |
| 201 | } |
| 202 | |
| 203 | QString SyncthingModels::getClipboardText() const |
| 204 | { |