Skip to content

Commit

Permalink
Make option --request-file-path optional.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelonken committed Apr 13, 2019
1 parent 8ed4c6b commit 27573ca
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions dcmwlm/libsrc/wlmactmg.cc
Original file line number Diff line number Diff line change
Expand Up @@ -189,15 +189,28 @@ OFBool WlmActivityManager::setRequestFilePath(const OFString& path, const OFStri
// format - [in] the format for the request file names.
// Return Value : OFTrue if directory and format is accepted, OFFalse otherwise.
{
if (OFStandard::dirExists(path) && OFStandard::isWriteable(path))
if (!path.empty())
{
opt_requestFilePath = path;
opt_requestFileFormat = format;
return OFTrue;
if (OFStandard::dirExists(path) && OFStandard::isWriteable(path))
{
opt_requestFilePath = path;
opt_requestFileFormat = format;
}
else
{
return OFFalse;
}
}
return OFFalse;
else
{
// disables option
opt_requestFilePath = path;
opt_requestFileFormat = format;
}
return OFTrue;
}


// ----------------------------------------------------------------------------

OFCondition WlmActivityManager::StartProvidingService()
Expand Down

0 comments on commit 27573ca

Please sign in to comment.