Skip to content

Commit

Permalink
fix synfig#245 - close floating Dock Panes when switching workspaces
Browse files Browse the repository at this point in the history
and when user try to close a floating Dock Pane

(before an empty and un'closeable' window titled 'Dock Pane'
remains there until quitting app)
  • Loading branch information
rodolforg authored and morevnaproject committed Aug 18, 2019
1 parent 03d322a commit d69464f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions synfig-studio/src/gui/docks/dockdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ DockDialog::on_delete_event(GdkEventAny * /* event */)
DockManager::remove_widget_recursive(**i);
}
}
return true;
return false;
}

bool
Expand All @@ -161,5 +161,5 @@ DockDialog::close()
empty_sig.disconnect();
//get_dock_book().clear();
delete this;
return true;
return false;
}
2 changes: 1 addition & 1 deletion synfig-studio/src/gui/docks/dockmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ DockManager::remove_empty_container_recursive(Gtk::Container &container)
if (window)
{
if (!window->get_child())
window->hide();
window->close();
}
else
if (book)
Expand Down

0 comments on commit d69464f

Please sign in to comment.