diff --git a/src/gui/FileViewFrame.cpp b/src/gui/FileViewFrame.cpp index 24d1a2a..0565f34 100644 --- a/src/gui/FileViewFrame.cpp +++ b/src/gui/FileViewFrame.cpp @@ -112,7 +112,9 @@ void FileViewFrame::DoOk() { fCancelButton->SetState(kButtonDisabled); TString filename = fNameField->GetText(); - TString fullpath = TString(fContents->GetDirectory()) + "/" + filename; + TString fullpath; + if(!dirFlag) fullpath = TString(fContents->GetDirectory()) + "/" + filename; + else fullpath = filename; if(fullpath == "") { //check validity std::cerr<<"Need to give a name!"<SetState(kButtonUp);