[DEV] use absolute path
This commit is contained in:
parent
c8f4a14517
commit
432fa5bf2e
@ -115,19 +115,20 @@ bool appl::BufferManager::exist(const etk::Path& _fileName) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void appl::BufferManager::open(const etk::Path& _fileName) {
|
void appl::BufferManager::open(const etk::Path& _fileName) {
|
||||||
if (exist(_fileName) == true) {
|
etk::Path fileName = _fileName.getAbsolute();
|
||||||
APPL_WARNING(" the element '" << _fileName << "' already exist ... just reselect it ...");
|
if (exist(fileName) == true) {
|
||||||
signalSelectFile.emit(get(_fileName));
|
APPL_WARNING(" the element '" << fileName << "' already exist ... just reselect it ...");
|
||||||
propertySetOnWidgetNamed("appl-widget-display-name", "value", _fileName.getString());
|
signalSelectFile.emit(get(fileName));
|
||||||
|
propertySetOnWidgetNamed("appl-widget-display-name", "value", fileName.getString());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
auto value = get(_fileName, true);
|
auto value = get(fileName, true);
|
||||||
if (value == null) {
|
if (value == null) {
|
||||||
APPL_ERROR("Error get '" << _fileName << "' ... ");
|
APPL_ERROR("Error get '" << fileName << "' ... ");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
signalSelectFile.emit(value);
|
signalSelectFile.emit(value);
|
||||||
propertySetOnWidgetNamed("appl-widget-display-name", "value", _fileName.getString());
|
propertySetOnWidgetNamed("appl-widget-display-name", "value", fileName.getString());
|
||||||
}
|
}
|
||||||
|
|
||||||
void appl::BufferManager::requestDestroyFromChild(const ememory::SharedPtr<Object>& _child) {
|
void appl::BufferManager::requestDestroyFromChild(const ememory::SharedPtr<Object>& _child) {
|
||||||
|
Loading…
Reference in New Issue
Block a user