mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-30 18:16:31 +03:00
ecode: Fixed a crash when creating a terminal without a project opened and after closing the last editor.
This commit is contained in:
@@ -989,7 +989,7 @@ std::string App::getCurrentWorkingDir() const {
|
||||
if ( !mCurrentProject.empty() )
|
||||
return mCurrentProject;
|
||||
|
||||
if ( mSplitter && mSplitter->curEditorExists() && mSplitter->getCurEditor()->hasDocument() &&
|
||||
if ( mSplitter && mSplitter->curEditorIsNotNull() && mSplitter->getCurEditor()->hasDocument() &&
|
||||
mSplitter->getCurEditor()->getDocument().hasFilepath() ) {
|
||||
return mSplitter->getCurEditor()->getDocument().getFileInfo().getDirectoryPath();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user