[DEV] add file chooser in shared mode
This commit is contained in:
parent
a425bdc17b
commit
4942765ccf
@ -282,7 +282,7 @@ void MainWindows::onReceiveMessage(const ewol::object::Message& _msg) {
|
|||||||
APPL_VERBOSE("Receive Event from the main windows: " << _msg );
|
APPL_VERBOSE("Receive Event from the main windows: " << _msg );
|
||||||
// open file Section ...
|
// open file Section ...
|
||||||
if (_msg.getMessage() == ednMsgGuiOpen) {
|
if (_msg.getMessage() == ednMsgGuiOpen) {
|
||||||
ewol::widget::FileChooser* tmpWidget = new ewol::widget::FileChooser();
|
ewol::object::Shared<ewol::widget::FileChooser> tmpWidget = ewol::object::makeShared(new ewol::widget::FileChooser());
|
||||||
if (tmpWidget == nullptr) {
|
if (tmpWidget == nullptr) {
|
||||||
APPL_ERROR("Can not open File chooser !!! ");
|
APPL_ERROR("Can not open File chooser !!! ");
|
||||||
return;
|
return;
|
||||||
@ -515,4 +515,7 @@ void MainWindows::onObjectRemove(const ewol::object::Shared<ewol::Object>& _remo
|
|||||||
if (m_widgetLabelFileName == _removeObject) {
|
if (m_widgetLabelFileName == _removeObject) {
|
||||||
m_widgetLabelFileName = nullptr;
|
m_widgetLabelFileName = nullptr;
|
||||||
}
|
}
|
||||||
|
if (m_bufferManager == _removeObject) {
|
||||||
|
m_bufferManager = nullptr;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user