Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
phase1geo committed Aug 26, 2024
1 parent 66afc41 commit 85e9fb3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/OutlineTable.vala
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,11 @@ public class OutlineTable : DrawingArea {
selected.parent.remove_child( selected );
}

if( selected != null ) {
/* If we are dragging out a selection in the title, handle it */
if( (_title != null) && _title.is_within( ex, ey ) ) {
change_selection( title, ex, ey );

} else if( selected != null ) {

/* If we are dragging out a text selection, handle it here */
if( (selected.mode == NodeMode.EDITABLE) || (selected.mode == NodeMode.NOTEEDIT) ) {
Expand Down Expand Up @@ -1006,7 +1010,7 @@ public class OutlineTable : DrawingArea {
_active_to_select = false;
queue_draw();
changed();
} else if( selected.mode == NodeMode.MOVETO ) {
} else if( (selected != null) && (selected.mode == NodeMode.MOVETO) ) {
_move_parent.add_child( selected, _move_index );
set_node_mode( selected, NodeMode.SELECTED );
queue_draw();
Expand Down
1 change: 1 addition & 0 deletions src/Tagger.vala
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ public class Tagger {
pointing_to = rect,
position = PositionType.BOTTOM
};
popover.set_parent( _ot );

var listbox = new ListBox() {
selection_mode = SelectionMode.BROWSE,
Expand Down

0 comments on commit 85e9fb3

Please sign in to comment.