This commit is contained in:
Martín Lucas Golini
2022-01-18 22:39:00 -03:00
parent 7667d58076
commit ff2fd46638
30 changed files with 855 additions and 72 deletions

View File

@@ -1717,7 +1717,7 @@ void App::initProjectTreeView( const std::string& path ) {
const ModelEvent* modelEvent = static_cast<const ModelEvent*>( event );
if ( modelEvent->getModelEventType() == ModelEventType::Open ) {
Variant vPath(
modelEvent->getModel()->data( modelEvent->getModelIndex(), Model::Role::Custom ) );
modelEvent->getModel()->data( modelEvent->getModelIndex(), ModelRole::Custom ) );
if ( vPath.isValid() && vPath.is( Variant::Type::cstr ) ) {
std::string path( vPath.asCStr() );
UITab* tab = mEditorSplitter->isDocumentOpen( path );