Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gnome-builder
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Günther Wagner
gnome-builder
Commits
039348ee
Commit
039348ee
authored
Jun 22, 2020
by
Christian Hergert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ls: handle call after being unloaded
Fixes
#1233
parent
61be0092
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
src/plugins/ls/gbp-ls-workbench-addin.c
src/plugins/ls/gbp-ls-workbench-addin.c
+10
-1
No files found.
src/plugins/ls/gbp-ls-workbench-addin.c
View file @
039348ee
...
...
@@ -98,13 +98,22 @@ gbp_ls_workbench_addin_open_async (IdeWorkbenchAddin *addin,
LocateView
locate
=
{
0
};
g_assert
(
GBP_IS_LS_WORKBENCH_ADDIN
(
self
));
g_assert
(
IDE_IS_WORKBENCH
(
self
->
workbench
));
g_assert
(
!
self
->
workbench
||
IDE_IS_WORKBENCH
(
self
->
workbench
));
g_assert
(
G_IS_FILE
(
file
));
g_assert
(
!
cancellable
||
G_IS_CANCELLABLE
(
cancellable
));
task
=
ide_task_new
(
self
,
cancellable
,
callback
,
user_data
);
ide_task_set_source_tag
(
task
,
gbp_ls_workbench_addin_open_async
);
if
(
self
->
workbench
==
NULL
)
{
ide_task_return_new_error
(
task
,
G_IO_ERROR
,
G_IO_ERROR_CANCELLED
,
"Extension was unloaded"
);
return
;
}
workspace
=
ide_workbench_get_current_workspace
(
self
->
workbench
);
if
(
!
(
surface
=
ide_workspace_get_surface_by_name
(
workspace
,
"editor"
)))
surface
=
ide_workspace_get_surface_by_name
(
workspace
,
"terminal"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment