| 301 | } |
| 302 | |
| 303 | QString Path::lastPathSegment() const |
| 304 | { |
| 305 | // remote Paths are offset by one, thus never return the first item of them as file name |
| 306 | if (m_data.isEmpty() || (!isLocalFile() && m_data.size() == 1)) { |
| 307 | return QString(); |
| 308 | } |
| 309 | return m_data.last(); |
| 310 | } |
| 311 | |
| 312 | void Path::setLastPathSegment(const QString& name) |
| 313 | { |