| 27 | } |
| 28 | |
| 29 | QString DefaultDirectoryManager::getDefaultDirectory() const |
| 30 | { |
| 31 | ApplicationSettings::DefaultDirectoryBehaviorEnum e = settings->defaultDirectoryBehavior(); |
| 32 | |
| 33 | if (e == ApplicationSettings::FollowCurrentDocument){ |
| 34 | const ScintillaNext *editor = window->currentEditor(); |
| 35 | return editor->isFile() ? editor->getPath() : settings->defaultDirectory(); |
| 36 | } |
| 37 | else if (e == ApplicationSettings::RememberLastUsed) { |
| 38 | return settings->defaultDirectory(); |
| 39 | } |
| 40 | else if (e == ApplicationSettings::HardCoded) { |
| 41 | return settings->defaultDirectory(); |
| 42 | } |
| 43 | |
| 44 | return QString(); |
| 45 | } |
| 46 | |
| 47 | void DefaultDirectoryManager::editorActivated(ScintillaNext *editor) |
| 48 | { |
no test coverage detected