]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/treemodel.cpp
Prevent implicit Widget construction
[xonotic/netradiant.git] / radiant / treemodel.cpp
index 9e1f20cfbd202abfb6053fd7677f77d362044845..d5a7a54a8b6a9dda4977210b55c6976f843c872e 100644 (file)
@@ -881,7 +881,7 @@ static GtkTreePath* graph_tree_model_get_path( GtkTreeModel* tree_model, GtkTree
        ASSERT_MESSAGE( tree_model != 0, "RUNTIME ERROR" );
        GraphTreeNode* graph = GRAPH_TREE_MODEL( tree_model )->m_graph;
 
-       GtkTreePath* path = ui::TreePath();
+       GtkTreePath* path = ui::TreePath(ui::New);
 
        for ( GraphTreeNode* node = ( *graph_iterator_read_tree_iter( iter ) ).second; node != graph; node = node->m_parent )
        {