mirror of
https://github.com/sesps/SPS_SABRE_EventBuilder.git
synced 2024-11-10 20:38:51 -05:00
Fixed bug in FileViewFrame where directory was printed twice
This commit is contained in:
parent
e9168bed2a
commit
1c9c97983f
|
@ -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!"<<std::endl;
|
||||
fOkButton->SetState(kButtonUp);
|
||||
|
|
Loading…
Reference in New Issue
Block a user