| 1411 | } |
| 1412 | |
| 1413 | std::string App::getCurrentWorkingDir() const { |
| 1414 | if ( !mCurrentProject.empty() && mCurrentProject != mPlaygroundPath ) |
| 1415 | return mCurrentProject; |
| 1416 | |
| 1417 | if ( mSplitter && mSplitter->curEditorIsNotNull() && mSplitter->curEditorExists() && |
| 1418 | mSplitter->getCurEditor()->hasDocument() && |
| 1419 | mSplitter->getCurEditor()->getDocument().hasFilepath() ) { |
| 1420 | return mSplitter->getCurEditor()->getDocument().getFileInfo().getDirectoryPath(); |
| 1421 | } |
| 1422 | |
| 1423 | return ""; |
| 1424 | } |
| 1425 | |
| 1426 | std::string App::getCurrentFileDir() const { |
| 1427 | if ( mSplitter && mSplitter->curEditorIsNotNull() && mSplitter->curEditorExists() && |
no test coverage detected